Create System DSN with Powershell
Hello, I have created a script to create system DSN for a Teradata Server. However it creates a DSN with incorrect parameters.Following is my...
View ArticlePowerShell: How to do AD LDAP queries from an stand alone machine?
Hello,I need to do LDAP query to an AD server from a standalone (not domain joined) machine. I have the user name and password for a domain member user available for the script.Is there any PowerShell...
View ArticlePowershell parsing question
Hi all,I'm trying to parse the below data and write it into a CSV file. I need to gather all the bolded data and the script that I have allows me to get the first 16 items (which is exactly what i...
View ArticleLive Migration to Best possible node
Hi,I have a 20 node cluster with virtual machine role.I would like know equivalent power shell command for migrating VMs to best possible node.When I right click on VM from cluster manager, I see below...
View Articlehow to get Time source DCs in domain
HI Friends,I got below script to checkout Time Source of domain controllers in my domain.But this script is appending the output file and instead of this I need to override to output file every time.Or...
View ArticleCan I compare a domain SID to a User Account's SIDHistory property?
Hi,The goal is to find out how many User accounts in domain 'A' have a SidHistory entry in their SidHistory property from domain 'B'.So if the domain SID is something like...
View ArticlePSWA dsquery user: user has not been authenticated.
Hi. I want to configure PSWA. But something wrong. I can to use simple search query: dsquery userswhat is missing?I've tried to set in web.config authentication mode="Windows" but, i can't connect to...
View ArticleGET-ACL list of groups attached to folder and subfolder with single line for...
Hello,I'm new to powershell and spent hours of googling this, but no luck. I need to get list of groups attached to folder with its subfolders, without listing all the folders. (e.g. list stating that...
View ArticleError calling the ProductInfo() method on the WindowsInstaller.Installer object
Mighty all, I'm looking into doing the "call the ProductInfo() method on theWindowsInstaller.Installer object" (from http://support.microsoft.com/kb/974653)Doing $Installer = New-Object -ComObject...
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 ArticleStart-Process with alternative credential in a remote session
Hi, all,I believe this scenario sounds indeed odd, but I do need your help on this.First I use Enter-PSSession -ComputerName myComputerName -Credential domain\user1to remote to a third machine from my...
View ArticlePowershell confirm Drive
Hello,I am writing a powershell script to copy files. I do not want these files copied to a local disk or network share. They must be copied to a USB drive. We actually currently have people mistyping...
View Articleupdate-hybridconfiguration Commandlet Fails
I ran the Update-hybridconfiguration commandlet in Exchange 2010 SP3 Management Shell and it fails with the following errorUpdating hybrid configuration failed with error...
View ArticlePowershell Exception when using getDynamicParameters to return multiple...
HI TeamI wrote a cmdlet to accept 2 parameters A and B . Each has 2 dependent parameters. Defined 2 classes to provide the definition of the dependent parameters.Coded getDynamicParameters() to check...
View ArticleDetails of a thread in Powershell
How can I get the CPU consumption of all threads running in a process thru powershell, in a format similar to thisI can't find any processor information when I run gwmi win32_thread|select -First 1....
View ArticleScript Uninstall of Java
I am trying to uninstall Java via a Powershell script. It works great, but the script removes all java builds. This includes Symantec NetBackup, JReports, and anything that has an embedded version of...
View ArticleInvoke-WebRequest loginform
Hi everybody.I know it's a bit out of scope, but i thought that maybe someone had an idea anyway :)I have an Ruckus 7341 AP. I would like through powershell to login and pull some information about...
View ArticlePowerShell Web Access - Creating "Self-Serve" Behaviour
Hi all,I am exploring PowerShell Web Access and I'm looking to set it up to offer self-serve capabilities to Dev/QA. Basically I want to Dev/QA to only be able to execute scripts (no running cmdlets,...
View ArticleUse Get-Wmiobject on remote PC with non admin privileges
Hi, I'm trying to run following string from remote PC to my SSRS PC.Get-Wmiobject -ComputerName <ComputerName> -namespace ('root\microsoft\sqlserver\reportserver\rs_mssqlserver\v10\admin')...
View ArticleGCI and Get-content not work on the same place why?
If I put *.ps1 file in the same place as the files the files is change :-)gciC:\loc*.txt-recurse|ForEach{ (Get-Content$_|ForEach{$_-replace"Lars","Ole"})|Set-Content$_}But I put *.ps1 it somewhere...
View Article