Save PowerShell as an operable file
Hope I've phrased that right - basically I've created a script in PowerShell that I'd like to be able to run regularly but I'm not sure how to save from the PowerShell ISE to a file that can be...
View ArticleSkype History Settings using group policy
Hello,How to disable Skype keep History for (Forever, 1months, no History) settings using Group Policy Settings.Regards,Yatin
View ArticleSkype not working proferly
Hello,When can I allow my Internet Connection Sharing option Skypedoes not work properly on any Windows 8 Pro machines. Regards,Yatin
View ArticleSetting Scope HyperV 2012 R2 What replaced ScopeOfResidence?
Basically, I want to know how to set the scope for a hyper-v vm in Server 2012 R2. I work at an academic institution, we intend to upgrade our 2008 R2 servers to 2012 R2 but before we can do that we...
View ArticlePowershell - set correct NTFS permissions on homefolder
Hi.I have for several days now tried to change NTFS permissions on 2 folders without any luck.Folder 1: domain\userhomedriveSubfolder 2: domain\userhomedrive\personalFolder 1 as it is now:...
View ArticleForeach output from get-command, add menu item
HiI'm making a script to configure some basic settings for new servers, and one of the features in the script is to set ip-address on the network interface. At some servers there are several network...
View ArticleHow to clone treenode?
How to duplicate/clone treenode to another?I have build treenode from Actice Directory OU structure to $treeNode1 variable. Now I want to clone it to $treeNode2 variable but I do not know how. Cloning...
View ArticleHow to run fuction as backgroup process?
How to call/run this function as background process?***************** function GetText { param ([string]$target) if ($target -eq "FORM") {$line = "rFORM"} else {$line = "rREPORT"} return $line }# call...
View ArticleHow to use function inside background job?
I try to call function inside job. It does not work. Is it possible to use function inside job or not. I hope you can help me. Here is my example code.Start-Job -Name ForestJob {param($v01,$v02) $line...
View ArticleSuspend process on remote machine
hey,I want to suspend a process on a remote machine. I found a really great script for suspending a process on local machine here:http://poshcode.org/2995Add-Type -Name Threader -Namespace "" -Member...
View ArticleEnter-PSSession does not work when a IPV6 address is entered as the -Computer...
I cannot get Enter-PSSession to work with a specific IPV6 address and when TrustedHosts is also set to this address.NOTE: If TrustedHosts is set to "*", then the command succeeds, so I'm pretty sure...
View ArticleHow to edit user's group memberships rather than a groups members?
So, my question is fairly simple, how do I edit the groups a user is a member of rather than which members are in a group?In ADUC, I can either pick a user and edit his groups, or pick a group and edit...
View ArticleData structures and script access questions
I am working on porting a large VBScript tool to PowerShell, and I am running into some issues. My tool is a deployment and customization tool for Autodesk software, which is consistently not Windows...
View ArticleHow to Export a List of Failed Windows Updates on a Server?
When you look at Windows Update History in Control Panel (Control Panel\All Control Panel Items\Windows Update\View update history), you get a 'Status' column that indicates whether the updates Failed...
View ArticlePS Object to CSV file
I want all the server name and the process information in CSV file but please see below the result is coming wrongIt brings only server info but not the process information. I am using PS V2Function...
View ArticleGet-ADUser cmdlet to retrieve homedrive & homedirectory doesn't return the...
Hello All,I'm trying out a simple command to display the homedirectory & homedrive attribute in a powershell window.The snapin shows the values filled in for the user: http://sdrv.ms/1f92TF9but the...
View ArticleImplicit Remoting Questions
I've been reading up about implicit remoting, and have followed through some of the guides for using this. I've still got some things im not sure about though.How do i ensure that i am not prompted for...
View ArticleAdding -Verbose to a Cmdlet Prevents Script From Terminating on Error
Why is it that if you add -Verbose to a cmdlet that if it has a terminating error it does not stop executing the script while otherwise it would have?For example, the following will fail with a...
View ArticleWhy is the connectionUri different in WSManConnectionInfo object for exchange...
For exchange the connection uri used is : 'http://machineName/powershell' The WSManConnectionInfo object is created in the following way: WSManConnectionInfo connectionInfo = new...
View ArticleEnable the explicit view permissions for a DFSn Folder - 2012
Is there a way in PowerShell to enable this selection on a DFSn folder? I found that when setting the Grant-DFSnAccess command, even if this has been previously set to explicit view, it goes back to...
View Article