Useful to know before re-install user environment.
Files needed:
The code:Explanation:
sed "s/.*\\Servers\\//g;" cut the output line content from line start till \Servers\grep -v "^$" - remove empty linesgrep -v "HKEY_LOCAL_MACHINE" - remove lines which includes HKEY_LOCAL_MACHINEsed "s/REG_SZ\|url//g" - deletes all REG_SZ and urlsed "s/^[ \t]*//g" - remove all white spaces and tabs at the start of linesed "s/http://g;s/\//\\/g;" - deletes all http:; replace / with \To list just the name use:Related:
List locally installed printers on remote machine
Set group policy user logon or computer startup script to run locally
No comments:
Post a Comment