How to write powershell command execution with verbose logging into log file...
I'm written small tool in c# to execute powershell command.Need your help to write all the execution activities done by the tool to a log file and the powershell command execution details written to...
View ArticleHow can I compute the number of fields in a CSV file that does not contain a...
How can I compute the number of fields in a CSV file that does not contain a header ?
View ArticleSet Print Server Security
Hi All,I've seen posts on how to set the security on print queues, and I can do this today, but not on the print server itself. Manually, I can open Print Management, right click on the print server...
View ArticleExchange 2010 Mailbox Storage Quotas Limits by AD Secrurity Group
Im trying to set Mailbox Quota limits by secrurity groups with in AD.Can any one offer any advice?Ive tried using this:get-ADgroup"Exchange Quota...
View ArticlePsexec in Powershell Question
Hello All,To save you the long story of it all, due to circumstance, I need to run psexec through POSH to execute a command on a remote machine. My method works just fine, but I would like to know if...
View ArticlePowershell find files
Could someone tell me why this would not be returning any results?My csv is in 2 column with the filepath and filename as the headers, but [knowing that it should present results] it doesn't present...
View ArticlePowershell script runs from command line but not as batch
Following is a sample of a powershell script that I can get to run fine from the powershell command line but not from within a software package that has the capacity to launch powershell scripts. Note...
View ArticleExcel & Powershell: Bulk Find and replace URL's used in forumlas
Hi, I'm working on creating a script that I will provide a list of SharePoint 2007 document libraries to which will do the following:In Excel, find formulas within cells that link to other workbooks +...
View Articlelist of subfolders where Userx does not appear in the security ACL
in a given folder, I want to list the names of all subfolders where UserX does not appear in the ACL.************ #easy enough to get all folders set-location "\\server\share\"...
View ArticleHow to write powershell command execution with verbose logging into log file...
Hi,I'm written small tool in c# to execute powershell command.Need your help to write all the execution activities done by the tool to a log file and the powershell command execution details written...
View Article(How) Can I access a method existing in my FormApp which is hosting a PSHost...
Hello,I would like to implement a form application which is hosting a PSHost and executes own cmdlets. As far as this it is no Problem.But my form is using also other dlls and has instanciated objects...
View ArticlePowershell is locking the file when I test for locked status
I've written a script that processes video files and then moves the original to another folder if they are not currently locked by another process. The function that I use to test for a file lock...
View ArticleWhy doesnt Add-AdGroupMember load User Accounts imported from my CSV file?
Hello,Thought I was doing some real simple here. I have a file named sdedot.csv formatted as follows:ID,Name Ha996622,Bobby Ha224411,MaryI tried running the following to load a Global Security group...
View ArticleHow do cmdlets in the AD PowerShell module determine which DC to contact when...
I am having an issue with a number of the cmdlets in the module timing out semi-randomly since I migrated my admin machine to Windows 8. I did not have the problem with Windows 7 on the same...
View ArticleHow to change the background color of some items in a table based on value in...
I want to change the background color of some items based on value in a table in a html page which I am generating as an output of a powershell script
View ArticleCannot execute LDAP bind in AD VBScript
I am trying to run a small VBScript to force a test user's AD password to expire (for the purpose of testing OWA reset).I am logged onto my DC, as domain admin, for this test.Here is the script I am...
View ArticleHow do I find the Delegated Administrators in Sharepoint
I am writing a report for managment that I hope to run as a Powershell script.One of the items they want is a list of Delegated Administrators for the SharePoint Central Administration site.In the CU...
View Articlefind domain admin account as service account
Is there a way to find out what services on every server in my domain is logging in using the domain\administrator account? Can i do a powershell query on all servers in the domain?
View Articlefind domain admin account as logged on user and force log off
how do I find if domain\administrator is logged onto which server and then force logoff?
View ArticleDisable-PSRemoting Broke PSRemoting
Hello All,I was playing around on a test machine and decided to use Disable-PSRemoting -Force. I ran it- it worked... a little too well lol. I tried to re-enable PSRemoting with Enable-PSRemoting...
View Article