16,140 reputation
63257
bio website jasonscott.org
location Rochester, NY
age 39
visits member for 5 years, 2 months
seen 2 hours ago

Systems Administrator in upstate New York.


2d
comment Script does not run under Domain Administrator
How does echo MyDate >test.txt work? Wouldn't you need the enclosing %s? With my current regional settings I can just do ECHO %date:~4,2%%date:~7,2%%date:~12,2% without shelling out to cscript.
Dec
18
answered Powershell - Merging Results in one table
Dec
18
comment Group Policy to Place Shortcut on All Users Desktops
Have you support for Group Policy Preference Client Side Extensions on your downlevel clients?
Dec
12
comment Batch script is not getting executed when called by Start-Process Cmdlet
@Matze I curious how that resolves the issue if you're unable to run the batch file from a cmd prompt. Are you unable to run it in cmd because you're not in the same directory as the .cmd file? You should post your resolution as an answer below so you can mark it as accepted. Answering your own questions is strongly encouraged.
Dec
11
comment Batch script is not getting executed when called by Start-Process Cmdlet
"Calling the batch script from a cmd.exe prompt does also not start it" -- There's your problem. What's the .cmd file's real name? What are its contents? What are the relevant security settings applied?
Dec
8
revised How to put DayOfWeek value into file name?
added 1 character in body
Dec
8
comment Broken activation of Windows Server 2012
I politely disagree @NathanC. The question here is "How do I fix activation?", not "Which Windows license should I buy?"
Dec
6
reviewed Approve Conversion from Basic failed
Dec
6
comment Determining software installation order on Windows
The Windows Installer event log would also have details about what was installed and when.
Dec
3
comment How can a domain's NS records point to a subdomain of itself?
What is a glue record?
Dec
3
comment Active Directory Permissions: Delete vs Move
@voretaq7 Ah, apologies. I completely missed that in the mobile app.
Dec
2
comment Active Directory Permissions: Delete vs Move
Wait, @voretaq7 just posted an answer to an AD question, then updated it to include a PowerShell example? I... I... +1
Dec
2
comment Get all local groups members and account status - locked and disabled
What have you tried? Are you getting any error messages? All you've provided here is a copy/paste of someone else's function.
Dec
1
answered How do I select an OID for my MIB
Nov
29
awarded  Constituent
Nov
24
comment LDAP Query behind Get-ADUser commandlet
I think you should reword your question to indicate you want an LDAP Filter for enabled users, with "expired" passwords and the userAccountControl flag for UF_DONT_EXPIRE_PASSWD.
Nov
24
comment LDAP Query behind Get-ADUser commandlet
I would choose -LDAPFilter over -Filter for almost any Get-Ad* operation. Thanks for the DotPeek link.
Nov
24
comment LDAP Query behind Get-ADUser commandlet
You can remove the first pipe and everything following. The Where clauses perform their work on the PowerShell object returned from the Get-ADUser, not by querying AD again.
Nov
21
comment Windows DNS Server Export
@Kevin You'll be happy once you update to Server 2012 and can use a simple Get-ServerDnsZone.
Nov
20
comment
Your answers on SF are thoughtful and insightful. I should hope ServerFault can find its balance. You would have my vote.