RE: [scripting] Script For AD User specifc OU group members to export in excel

2016-04-21 Thread Christopher.Catlett
The below will give you all users that reside in a single OU, change SearchScope to "Subtree" if you want it to recurse through down-level OU's. $OU="OU=Standard Users,OU=Users,DC=internal,DC=domain,DC=com" Get-ADUser –SearchBase $OU –SearchScope OneLevel -Properties * | export-csv -notypeinf

[mssms] Re: [scripting] Powermanagement for win7

2015-04-06 Thread Christopher.Catlett
powercfg http://blogs.technet.com/b/richardsmith/archive/2007/11/29/powercfg-useful-if-you-know-the-guids.aspx You will need to set the option for each power profile present on the machines. Unless you have a custom one created, which most do not. You will need to set it for 3 profiles (balance

Re: [scripting] Powermanagement for win7

2015-04-06 Thread Christopher.Catlett
powercfg http://blogs.technet.com/b/richardsmith/archive/2007/11/29/powercfg-useful-if-you-know-the-guids.aspx You will need to set the option for each power profile present on the machines. Unless you have a custom one created, which most do not. You will need to set it for 3 profiles (balance

Re: [scripting] hit or miss

2014-03-12 Thread Christopher.Catlett
why are you halving the buffer size? (default is 32) have you tried allowing it to run more than a single ping? (default count is 4) you dont need to set -erroraction (just use -quiet) I’d write the names of the servers that dont respond to a seperate file, so you have a smaller list to work on.

RE: [scripting] Is this possible?

2014-01-23 Thread Christopher.Catlett
Not only is file auditing a can of worms, it will nuke your security logs on a busy file server, unless you are log shipping. Christopher Catlett Consultant | Detroit [MCTS_2013_small] Sogeti USA Office 248-876-9738 |Fax 877.406.9647 26957 Northwestern Highway, Suite 130, Southfield, MI 48033-84

RE: [scripting] Invoke-Command

2014-01-16 Thread Christopher.Catlett
Does that script exist on the D drive of the remote server? That's how your calling it in your script. And please, use something other than Comic Sans, it makes my eyes bleed. Christopher Catlett Consultant | Detroit [MCTS_2013_small] Sogeti USA Office 248-876-9738 |Fax 877.406.9647 26957 Northw

[scripting] RE: Invoke-Command

2014-01-16 Thread Christopher.Catlett
http://blogs.technet.com/b/heyscriptingguy/archive/2010/11/16/enable-powershell-remoting-to-enable-running-commands.aspx You need to enable and configure Ps-Remoting Christopher Catlett Consultant | Detroit [MCTS_2013_small] Sogeti USA Office 248-876-9738 |Fax 877.406.9647 26957 Northwestern Hig

RE: [scripting]

2013-10-29 Thread Christopher.Catlett
$users = get-aduser -filter * -Properties * | Select DistinguishedName $users | ForEach-Object -process {Move-ADObject $_.DistinguishedName -Server Server1.ts.local -TargetPath "SourceDN"} Christopher Catlett Consultant | Detroit [MCTS_2013_small] Sogeti USA Office 248-876-9738 |Fax 877.406.964

RE: [scripting] Temporary Local Admin rights

2013-10-18 Thread Christopher.Catlett
Well, you could set a scheduled task to remove the account from the local admin group and schedule it for 30 days in the future, but realize that if you have admin rights you can just delete the task ;) There really isn't a "good" way of doing what you want, that I can think of. Unless you use

RE: [scripting]

2013-10-10 Thread Christopher.Catlett
http://www.myitforum.com/absolutenm/EmailLists.aspx Christopher Catlett Consultant | Detroit [MCTS_2013_small] Sogeti USA Office 248-876-9738 |Fax 877.406.9647 26957 Northwestern Highway, Suite 130, Southfield, MI 48033-8456 www.us.sogeti.com From: listsad...@lists.my