Quantcast
Browsing all 21975 articles
Browse latest View live

Script to delete all lines that has some strings

Hi Guys,Of course I´m not specialist on powershell scripts, but I´m trying to create a simple script that read all txt files and delete all lines that has the strings below.I would like to improve this...

View Article


Installation of Windows Management Framework 4.0 (Powershell 4.0) on Server...

I've been trying to test PowerShell Desired State configuration on a Windows Server 2012 instance on Amazon EC2. I downloaded the Windows Management Framework 4.0 from the MS download center:Windows...

View Article


When to use Microsoft.Win32.RegistryView.Registry64

I'm writing a PowerShell script that modifies the registry and I'm wondering if I need to specify the bittness of the keys I'm trying to modify.  I'm hoping someone can clear this up for me.As I...

View Article

$ie.ExecWb(6, 2)

I save webpages to xps files by using $ie.ExecWb(6, 2) function in PS. each of them is saved to a multi-page xps file. The script ok for long time. then I found that one of them started to save only...

View Article

How to comapare two folders and copy differrent files in many locations

I need the following ( in powershell )1- to compare two folders on the following basis          if file does not exist  ( means new file )          if file exist but had different date or length  (...

View Article


alternative way to map a drive letter to a shared folder

Unfortunately none of the above meets my case and it gets more puzzling as I go forward.  Our office does not have a Domain, just a plain Workgroup. We have two Servers, one 2008 R1 one 2008...

View Article

Issue bulk updating Phone numbers in AD

I'm wondering if someone can help, I'm trying to import and replace telephone numbers in AD via a Powershell script from an exported and updated CSV file. The script I'm using is:Import-Csv...

View Article

Passing a mix of optional & and empty arguments

I have three pairs of arguments I need to pass to a function. Each pair is made up of an ID and a Type as strings. Of the three pairs, one pair is optional, and the other two are not, and in one...

View Article


Get the name of a workflow within the workflow

If I want to get the name of a PowerShell function from within the function, I can use $MyInvocation.MyCommand.Name.Is there something equivalent that works within workflows?Tim Curwick...

View Article


Enable-WSManCredSSP do not configure policy for delegation

Hello, Enable-WSManCredSSP in client role on Windows 8.1 client (have tried two) didn't sets the Windows CredSSP policy AllowFreshCredentials to WSMan/Delegate on the client, as it is described in...

View Article

Script to find OU name and object name in AD

Hi , can any one help me on this, I need a script to find OU name along with object name in entire domain.Regards, Triyambak

View Article

setting msExchHideFromAddressLists and ShowinAddressBook

Hello all,I'm trying to hide Contact objects from the GAL by setting the msExchHideFromAddressLists and ShowinAddressBook attributes, and I'm having a bit of trouble. My code performs a domain search...

View Article

Having issues installing Powershell 3 on POSREADY 7

I have been trying to install Powershell 3 on POSREADY 7 for a few days now, and I can't seem to get it.  Powershell 2 is already on the box (out of the box).  I ran windows updates - all relevant...

View Article


How to filter a get-adcomputer command using a text/csv file and output to a CSV

OK, so I'm in the process of trying to get a Windows 7 refresh completed for a large client... I had the bright idea to use AD to find what computers are listed as XP, and determine our progress using...

View Article

One parameter depends on another

I've got a PowerShell script that has the following syntax:Get-Stardate [[-Time] <Object>] [-Decimals <Int32>] [-UTC] [<CommonParameters>]The param declaration is:param (...

View Article


Having multiple problems with script - NTFS Permissions and AD Groups

Hi, all!  I'm having multiple problems with my first script I've written with Powershell.  The script below does the following:1. Prompts the user for a corporate division under which a shared folder...

View Article

Server 2012 R2 powershell install of RemoteAccess (Including DirectAccess)

I am building a test lab with Server 2012 R2 for Remote Access. The GUI install went smooth but I am trying to figure out how to install the role and role services with PowerShell.From what I read I...

View Article


login to website using invoke-webrequest

I'm trying to supply credentials when opening a URI with invoke-webrequest, but can't figure out how to set and pass the credentials.  The site is not using Windows authentication. The page has a form...

View Article

list processes of disconnected users

Here is a problem that I have. I work at a hospital. We have a certain application installed on a dozen Windows 7 machines. Doctors leave that application open and walk away from the machine.  The...

View Article

Can V4 Set-DNS.. cmdlets config DNSSEC and Round Robin?

Hello,I cant find with the new V4 Set-DNS.... DNS cmdlets how to config, or turn off/on DNSSEC and Round Robin in DNS on a Domain Controller.  If this is possible, could you plz advise what cmdlets are...

View Article
Browsing all 21975 articles
Browse latest View live