Reputation
616
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 8
Newest
 Yearling
Impact
~66k people reached

  • 0 posts edited
  • 2 helpful flags
  • 24 votes cast
Apr
21
comment how do I add the same 3 characters to all of the file names in a directory with powershell -not as a prefix
This shouldn't be too hard, so I'll give you general guidance - try something first and repost when you have a specific question and youv'e tried google. You're going to use the Get-ChildItem command on the directory, and for each item within the directory use a where clause to select just the .wpf files, and within the properties of the files you'll have everything you need - the original name, the parent dir name, and the extension. Use move-item to rename it.
Dec
1
awarded  Yearling
Feb
4
awarded  Custodian
Feb
4
reviewed Approve How to trigger a task at any change on a folder with Windows Server Task Scheduler?
Sep
24
awarded  Autobiographer
Oct
2
comment Tools to automate windows server administration? Puppet?
I usually have a management server with the scripts on them. I then run them from this central location and the scripts all take a ComputerName parameter. There are various methods for executing remote commands under this. I usually just use WMI, but better options surely exist. PowerShell has invoke-command I believe which might do what you want on boxes with the proper configuration for wsman
Jan
5
awarded  Yearling
Aug
8
comment How do I configure permissions for a cluster share using Powershell on 2008?
Also, to see the available properties to set, do this: Get-ClusterResource TestShare | Get-ClusterParameter | fl * and see if it yields a list of params and their current values.
Aug
8
comment How do I configure permissions for a cluster share using Powershell on 2008?
Could you be looking for the Grant-ClusterAccess cmdlet instead?
Aug
7
comment How do I configure permissions for a cluster share using Powershell on 2008?
Can we see your whole command line? Feel free to obfuscate the cluster name or whatever you'd like. Also, if you use the Get-ClusterParameter command what does it return (similarly obfuscated).
Aug
7
comment How do I configure permissions for a cluster share using Powershell on 2008?
I'd say a quiet failure isn't a better result than a verbose failure when troubleshooting, but to each their own :)
Jul
26
answered Batch script to run multiple wget commands
Jul
26
answered How do I make ncat not send a line-feed?
Jul
2
awarded  Student
Jul
2
awarded  Scholar
Jul
2
accepted Dell R710 RAM upgrade
Jul
2
answered Dell R710 RAM upgrade
Apr
27
answered Can't set up task to run from non admin user
Feb
27
comment Exchange 2007 Transport rule only works on SMTP
Secondly, if an NDR triggers instead of this rule (because the accounts have been removed), it would be helpful for you to post that as well (with the sensitive bits generalized).
Feb
27
comment Exchange 2007 Transport rule only works on SMTP
Nic has a great point here. There's a possibility that the rule isn't triggering because the NK2 file has stored the legacy exchange address instead of SMTP.