Powershell Remoting from a TaskScheduler task run under unprivileged user.
Hi,I have a TaskScheduler task configured to run under unprivileged account "shutdownscript"The task starts batch file which in its turn starts powershell script.The script has a lineInvoke-Command...
View ArticleStart-job not working as expected.
I'm writing a script using test-connection on many servers and want to use the start-job so that each instance runs seperate from the other. The following is the code I have, but the variables don't...
View ArticleHow to check if a word file have a password?
Hello,I built a script that converter doc file to docx,But I had a problem that there is doc file with a password that i can't access them and then the script hang.I look for option that check if the...
View ArticleProblems removing a user from a Group where the group dn contains a "/"...
Hellos.We have a requirement that when a User's contract (leaves company) his AD account is Disabled and All Group memberships are removed.The Powershell script running to do this contains theses...
View Articlescript to find service and start them
I need to find all the machine on the domain to see if computer browser and Remote registry is started or not. if not I need to start themhow can i do this with powershell?
View ArticlePowershell Script to relocate User's Profile folder during Deprovision
Hi, I'm trying to write a script which, upon execution, move a user's profile folder from it's original location (in the \\server1\profile$ folder) into a sub folder in that location...
View ArticleGet-ADGroupMember - Trusted Domain User Accounts
I have several two way domain trusts at the moment and I think I'm hitting some type of resource problem or timeout when using Get-ADGroupMember on domain local groups that contain user accounts from...
View ArticleLittle Help
I am new to power shell and need to understand the command Get-Process | Sort -property Workingset –descending The above command means get all the processes with the property name of Workingset and...
View ArticleI am looking for script which can copy files from one location to another...
while copying the files, it has to check with current date and it has to create a folder and copy the files into that. - Now if the old files are exsisting in the present folder you have to move them...
View ArticleExchange 2003
Hello,I have prepared a script which brings the result of mailbox size for all the user in exchange 2003, but I am unable to do that by using the input file for the specific users. Please help.$Names =...
View ArticleZipping files
Hi,Is there a better way in powershell other that using the Community Extensions that includes write-zip? I've found this post and it looks simple but I cant install the Extensions as its not my...
View Articletable to xml conversion
Hi I'm havving the following tableSystem Administrator Historical Database CCLAB602BI\TENANTDB NULL SystemAdministrator Tenant Historical Database CCLAB602BI\TENANTDB NULL...
View Article2 forms - one opens the other, how to keep 1st active whilst 2nd open?
HiI have one powershell form the launches another from a button. When the 2nd form is active, the 1st one becomes unresponsive.Searching on the net reveals info relating to the...
View ArticleFormat Output
Hi all,I am writing a script that will pop up a message box with some information about the local PC and the user who is on it.I am having problems getting the format i want from the line that queries...
View ArticleSet-aduser
I was trying to create a customize attribute which is join date. i end up with some error. i can create the user account as you can see in the fist command. and then when i try to add the set-aduser...
View ArticleHow to display ComputerName in output?
Hello,Im running the following and I pass a list of Domain Controllers to a Get-WmiObject. In my output, I want to display the name of the DC along with the Name variable from the Get-Wmiobject. How...
View Articleconvert table to XML
Hi I'm having the following tableDBType DBServer FODB DBNameSystem Administrator Historical...
View ArticleHelp with Script to Provision User Provfile Folders and Subfolders on a Demo...
Hi,Here is my situation. I am using scripts to build a demo machine. This machine is Windows Server 2012. I have a list of users in AD that have been imported and already exist. I want to automatically...
View ArticleGet-WmiObject : The RPC server is unavailable. (Exception from HRESULT:...
HiI have a strange situation.DC1 - 192.168.1.1SRV1 - 192.168.1.2SRV2 - 192.168.1.3Then i run the command on DC1: gwmi -class win32_process -computername SRV2 and get the proper result. Next i run the...
View ArticleHow to write script errors into a custom event log ...
So I've run the following code on one of my servers to create a custom event log and source:New-EventLog -LogName psLogs -source scripts Limit-EventLog -overflowaction overwriteasneeded -maximumsize...
View Article