Reputation
18,571
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
6 45 73
Newest
 Enlightened
Impact
~1.1m people reached

Apr
6
comment Windows Server Group Policy: Install Software - Activations?
For Adobe products, consult the Creative Suite Enterprise Deployment Guide and AAMEE. For Office, see the Deployment Guide for Admins as well as Understand KMS. For everything else, refer to Katherine's answer below and then read the specific vendor's deployment documentation.
Apr
1
comment Windows Server 2012 R2 not printing from Task Scheduler
Does the user which the task runs as have a default printer selected?
Apr
1
comment How to hide command window at while running powershell script through the task scheduler?
You can come close with a scheduled task that runs the program cmd.exe with the arguments of /C START "" powershell -NoLogo -WindowStyle Hidden "C:\gui.ps1" -- note that the console window will flash (incredibly briefly) and then close whilst the gui.ps1 executes.
Apr
1
comment Problems with a script uninstall (SCCM 2012) and its causing the detection method to fail
@doenoe The Remove-Folder function is included with the Powershell Application Deployment Toolkit linked above -- the basis for their question here.
Mar
18
comment Rundeck setup: ssh keyfile does not exist
I can't really speak to a best practice, sorry, I'm a RunDeck novice in that regard. I was only able to answer because we had the exact issue you described during our initial deployment.
Mar
6
comment Delete only files leaving empty sub-folders using powershell
Or, if you've a recentish Powershell, Get-ChildItem $TargetFolder -Recurse -File ... so you can get files only before you hit the pipeline.
Mar
1
comment Get current hostname and push it into conf file with ansible
You registered the output of echo $HOSTNAME as the variable result. Does result not contain the expected value?
Mar
1
comment PowerShell pipe into find.exe command
@Vic The findstr utility does not require double quotes in the /C string parameter: findstr /C:somestring somefile works as does findstr /C:"somestring" somefile. For FIND, the double quotes are required present.
Feb
18
comment Importing ExtensionAttribute via CSV with Powershell
Have a look at serverfault.com/help/formatting
Feb
18
comment DHCP Reservation Without Knowing MAC
@AaronCopley Things like HP's Web Jetadmin can be used to auto configure network printers using policy templates. Not saying that's what OP is using though.
Feb
12
comment Change active directory display name format in PowerShell?
Cool, glad you resolved this. You should post your answer as such so you can mark it as accepted.
Feb
12
comment Powershell script to create folder based on username and then move profile data
If $env:USERPROFILE returns the value of the system variable %USERPROFILE%, how might one access other system variables in PowerShell?
Feb
12
comment Change active directory display name format in PowerShell?
Yes, you can modify the createDialog attribute using PowerShell. What have you tried? Which part isn't working? Please add any code as an edit to your question.
Feb
11
comment Change active directory display name format in PowerShell?
Are you asking if you can modify the createDialog attribute using PowerShell?
Feb
10
comment Scan windows file system for directories containing certain words
+1 And may I suggest you try my answer using dir, it very much will provide the full path as a side effect of /b /s.
Feb
10
comment Scan windows file system for directories containing certain words
Your third result "C:\example\Logforapps" does not contain "logs".
Feb
9
comment Web Attack: Mass Injection Website 19
serverfault.com/questions/218005/…
Feb
3
comment PowerShell: How to get local users and local groups, but exclude disabled accounts
+1 For just making the effort to untangle the original copy/paste horror show.
Feb
1
comment Catalyst 2960-X no xmodem or tftp transfer
Glad you've resolved your issue. The file hashes Cisco provides can be useful to avoid issues like these. Please be sure to mark your answer accepted when you are able.
Jan
25
comment how can I download web pages from the command line in windows
Ok, if you can't be bothered to install v3: $curl = New-Object System.Net.WebClient; $curl.DownloadFile('http://serverfault.com/questions/751441', 'output.html')