Difference between revisions of "General Powershell Notes"
Jump to navigation
Jump to search
Michael.mast (talk | contribs) |
Michael.mast (talk | contribs) |
||
Line 1: | Line 1: | ||
<ref>https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/enable-psremoting</ref> | <ref>https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/enable-psremoting</ref> | ||
+ | ==Powershell Version== | ||
+ | <ref>https://stackoverflow.com/questions/1825585/determine-installed-powershell-version</ref> | ||
+ | <pre> | ||
+ | $PSVersionTable | ||
+ | </pre> | ||
+ | |||
==NTFS Permissions== | ==NTFS Permissions== | ||
<ref>https://gallery.technet.microsoft.com/scriptcenter/1abd77a5-9c0b-4a2b-acef-90dbb2b84e85</ref> | <ref>https://gallery.technet.microsoft.com/scriptcenter/1abd77a5-9c0b-4a2b-acef-90dbb2b84e85</ref> |
Revision as of 16:42, 26 May 2017
Powershell Version
$PSVersionTable
NTFS Permissions
Get-NTFSAccess -path .\Contacts add-ntfsaccess -path .\contacts -account first.last -accessrights read
Passing Passwords to PSSession
[5] Convert to secure string then call from file. This following pulls from stdin as a secure string (converts what you type), then converts that to something (I'm still new to Microsoft's ways of doing things), then stores as a file.
read-host -assecurestring | convertfrom-securestring | out-file C:\securestring.txt
- ↑ https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/enable-psremoting
- ↑ https://stackoverflow.com/questions/1825585/determine-installed-powershell-version
- ↑ https://gallery.technet.microsoft.com/scriptcenter/1abd77a5-9c0b-4a2b-acef-90dbb2b84e85
- ↑ https://blogs.technet.microsoft.com/fieldcoding/2014/12/05/ntfssecurity-tutorial-1-getting-adding-and-removing-permissions/
- ↑ http://web.archive.org/web/20160822030847/http://geekswithblogs.net/Lance/archive/2007/02/16/106518.aspx