Quantcast
Browsing all 21975 articles
Browse latest View live

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 Article


PowerShell: 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 Article


Powershell 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 Article

Image may be NSFW.
Clik here to view.

Live 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 Article

how 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 Article


Can 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 Article

Image may be NSFW.
Clik here to view.

PSWA 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 Article

GET-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 Article


Error 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 Article

Start-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 Article

Powershell 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 Article

update-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 Article


Powershell 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 Article

Image may be NSFW.
Clik here to view.

Details 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 Article


Script 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 Article

Invoke-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 Article


PowerShell 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 Article

Use 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 Article

GCI 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
Browsing all 21975 articles
Browse latest View live