Quantcast
Browsing all 21975 articles
Browse latest View live

import-csv and export-csv

 Hi everyone,How do I modify the script so that I see all the entries in the computers_result.csv file.  As it stands only the last entry in the computers.csv shoes up in the computers_result.csv file....

View Article


Powershell Script - to list SQL Server Windows Groups

Hi All:I m planning to write a script, to pull SQL Server Windows Groups members list by using powershell.By using dsa.msc i can view the members of a particular SQL widows groups., the same i want to...

View Article


Not able to return correct value from invoke-Command

Hello,I am trying to run a scan on large amount of machine and find a particular file and it last modification time.Here is the code that i am using. Invoke-Command -ComputerName vmvpc020127...

View Article

Find properties/methods of a class?

The exercise im trying to do is find the SID of each group on a local machine.I want to do this without simply copying down a script.  I know i need the System.Security Class, but i cant figure out how...

View Article

Configure Windows Update clients per site

Hi everybody. One of my customers has a lot of sites, each one with your WSUS server, and some of the users keep moving from site to site. The customer doesn't want to move the computer object to the...

View Article


RoamingCustom.dic

Guys.Bit of a head scratcher. I need to backup and then at a later date restore a users RoamingCustom.dic in the location below. The issue is that in the path there is a small identifier which is...

View Article

Powershell script for creating local users and write details to XML file

Dear Experts,I've created a little script for creating Windows Local users and their environment for FTP access. The script is working well except it should write the details to an XML file. The script...

View Article

Run Function - command line

Hi Chaps.Sorry for a bit of a noob question but actually not done this before.I am producing a backup / restore script for our helpdesk team. I was looking to have one script rather than two and then...

View Article


Script will not work

Hello,I am running this following script:-# Bulk Mailbox Export for users selected from CSV File   # Script Starts here $Users = Import-Csv c:\users.csv   foreach ($Users in Import-Csv ./users.csv) {...

View Article


Powershell script to handle large data :: Run faster

Am trying to create an AWS VM using HTTP Query API from Cisco Process Orchestrator(Tidal Enterprise Orchestrator). The Query parameter "UserData" to be sent is of nearly 30 lines. When i try to...

View Article

powershell script popup

hello:i remember taht when i run my script on powershell ise a popup appear to enter a value, now it seem to be not the case..how can i diplay a message or a description like enter folder name on the...

View Article

powershell script popup

hello:i remember taht when i run my script on powershell ise a popup appear to enter a value, now it seem to be not the case..how can i diplay a message or a description like enter folder name on the...

View Article

command to find hostname

I have the serial number of host but do not have host name what is command in porwershell using wmic.  I have serial number of the host but would like to know the hostname.

View Article


Can multiple Powershell v4 DSC configuration objects be combined on a machine?

I'm working on configuring servers using Powershell Desired State Configuration (DSC). I have several different groups of IIS servers. The configuration for all of them is about 90% identical, but...

View Article

Windows 2012 R2 - windows powershell- New-VirtualDiskSnapshot issue

Hi There,I have created a storage pool and a Virtual disk on windows 2012R2 OS. A volume has been created from the VD.When I try to crate a snapshot of the VD,I am getting the below message.----PS...

View Article


Hotfix scan - Existing script but I want to write out to csv

Hello,I have a working script that reads in a list of computers and scans them to ensure a hotfix was installed.  I want to make a few modifications to this script:Write out to a csv file.How do I scan...

View Article

Scripting file replacement across local profiles

Hello,I’ve run into a snag and I hope someone can assist. Here’s the short version…1. Grab all users on a workstation 2. For each user, check for folder path 3. If the path exists, check for multiple...

View Article


Configure the firewall rule using powershell 2.0

I am using windows powershell 2.0 to create a new firewall rule. I can create the outbound firewall rule by using this command :-netsh advfirewall firewall add rule name="allow traffic" protocol=TCP...

View Article

Trap and Windows Forms

Hi, usually i have a  trap{} in my scripts to handle and log(!) allunforseen exceptions which i have not otherwise handled via Try/catch.This works great. But, when i have a script with windows forms,...

View Article

Power shell script for AD User

Hi Team,can any one help me to find out this in ad through power cell script.List of users who's password has been reset in 90 days.Regards, Triyambak

View Article
Browsing all 21975 articles
Browse latest View live