Jun
28
Posted by jbjorkman on June 28, 2009 under
Deprecated: preg_replace() [
function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in
/var/www/myfoto.se/jbits.se/blog/wp-includes/formatting.php on line
82
Powershell
#Get Local Adminaccount
get-wmiobject -query "Select * from Win32_Account where LocalAccount=True and SID like 'S-1-5-21-%-500'"
#Get Local Guestaccount
get-wmiobject -query "Select * from Win32_Account where LocalAccount=True and SID like 'S-1-5-21-%-501'"
Simply run the following command to install the telnet client: pkgmgr /iu:"TelnetClient"
To later uninstall it run: pkgmgr /uu:"TelnetClient"
Full list of Windows Package Manager (pkgmgr.exe) command line switches:
/?, /h, /help - Displays help.
/ip - Install package
/up - Uninstall package
/up:[{package name1}[;...]] - Uninstall package(s)
/iu:{update name1}[;...] - Install update(s) specified by name
/uu:{update name1}[;...] - Uninstall update(s) specified by name
/m:"{package directory}" - Specifies the location of the package
/p:"{package name}" - Specifies the identity of the package
/o:"[{boot drive path};]{offline Windows directory path}" - Specifies operation against an offline Windows image
/n:{unattend file} - Specifies unattended operation parameters
/s:{sandbox directory} - Specifies directory to extract files to
/quiet - Runs pkgmgr.exe without UI. If restart is required it will be performed without a prompt
/norestart - Suppress restart (when restart is necessary)
/l:{log file} - Specifies a file for diagnostic output