Powershell 3 compatible with .net.4.5
Hello, i have multiple machines with Powershell 3 ( Wmf 3) and .net 4.0 installed. Can i install .net 4.5? Does this cause any problems?best regards, arhillhttp://www.administrator.de/
View ArticleType already exists?
I am using Add-Type but I am getting the error:Cannot add type. The type name 'TestSetup' already exists.Can I tell if a type already exists and remove it so that I will not get this error?Thank...
View ArticleStoring Credentials to be used as a different user - instantiation issue of...
I have services which require certain credentials to log in and i am attempting to automate this process to run certain jobs. I've attempted storing password data as a securestring; however, secure...
View ArticleMount-DiskImage in a remote session exeception- Cannot process Cmdlet...
Hi everybody,I have a strange problem with Mount-DiskImage command.Environment: Windows server 2012 without any updates.All scripts signed as it was in Hanselman's...
View ArticleIF Statement help - PowerShell
Hi,I am trying to remove and add a group if a user is a member but the IF STATEMENT is not quite there. It does not loop through every user in the spreadsheet. Any assistance would be much...
View Article[DOC BUG] in Start-Job cmdlet parameter -FilePath
In http://technet.microsoft.com/en-us/library/hh849698.aspx, it can be read:<#-FilePath<String>... Enter the path and file name of the script or pipe a script path toStart-Job...... Accept...
View Article[BUG] in Start-Job cmdlet when piping job's name to the cmdlet: the resulting...
Consider this script:$job=[pscustomobject]@{Name='Qwerty'} | sajb -ScriptBlock {ps}The job is created, successfully, with the name specified above.It can be seen commanding:gjbNonetheless, trying to...
View ArticlePCI Slot finding
Hi,Is it possible using powershell to find PCI slot number of physical NIC card attached to server. I am preparing Network inventory sheet for HyperV 2012 R2 project.
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 ArticleGet Processes by Username without WMI
How about this for a solution that doesn't involve WMI. #This will retrieve all processes by...
View ArticleNeed VB script for SMTP Status
Hi guys,Need a script for finding the SMTP status like Enable or disable for the list of servers.Regards, SreeM
View ArticleWait for process to start then loop start-process for another process until...
I am trying to wait for a process to start, once started, then loop start-process again for a second process until it starts, then wait until the first process has stopped and exit script. Heres my...
View Articleconvert ObjectGuid attribute to HEX
I need to convert a computers active directory GUID into hex. The format I need this in is displayed the way I need it when I view the GUID through Active Directory Users and Computers, but every...
View Articlemultiple table format through email using powershell
Hi All,I have a powershell script which executes a SQL Query on three SQL instances and provides the result in table format through email. The output email contains all the result of the query in a...
View ArticleInternet Explorer tab titles
Trying to write a script to retrieve the title for all open Internet explorer tabs on a terminalserver.I have found several scripts to get all internet explorer tabs on a logged in user, but I need to...
View Articlehow to create TFS query link
I have below TFS query and I want to create a link for TFS like QueryLink so when we click the link it should open the query in web in TFSplease let me know how do I create the link.$tasktfs =...
View ArticleGetComputerSite()'s server list is empty...
Hey folks -- So I'm working in an Active Directory environment that is healthy.I've run: [System.DirectoryServices.ActiveDirectory.ActiveDirectorySite]::GetComputerSite()And expected the servers...
View Article1 profile many comptuers
As a network adminisitrator and Powershell user I find myself having to copy my profile to every computer I log into in order to retain the same functionality across systems. Is there a way to...
View ArticlePowershell - Modify Share Permissions on NAS (without WMI)
Good morning everyone!I have been working with Powershell (and Orchestrator) to automate management of our file shares. The plan is to modify, remove, rename and/or create these shares and apply...
View ArticleHow can I set permission for a shared folder?
Hello,I want to share a folder and set permission for the shared folder. I've shared the folder. I used "net use z: \\server\folder" and "$shares=[WMICLASS]"WIN32_Share"...
View Article