Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Powershell can not resolve ws.Pagesetup.PrintArea using...

Hi AllI require to print an Excel-Sheet, which has a defined PrintArea. Although this Printarea can be set, the existing Range can not be resolved. Is there a solution to my problem?Here a small demo...

View Article


Enter-PSSession : Invalid URI: The hostname could not be parsed

Hi,Im trying to write a script to get the mac address of a specific VM located in a cluster managed by VMM. The script will be running from management server and not hyper-v host in the cluster (is...

View Article


Bind SSL with 443 and https to web site IIS 10

Hi team,I`m not able to attache SSL cert to my web site via powershell command , can please anyone suggest how to. the way I tried is the following: # Import IIS Management PowerShell Module...

View Article

Writing a powershell script having issues

I am writing a script to accept values into a string and then use these values to copy a user account in AD. Here is the code I have put together.$existinguser = Read-host "Enter User to Copy from"...

View Article

Software Installation Rights

When accounts that are members of Domain Users want to install or remove a program from the computer, UAC prompts for administrator password. Is there a way through GPO default domain policy to allow...

View Article


Create mountpoint script overwriting partitions

Hi All.I have been able to put together the script below, it creates mount points from a single disk at the moment, instead of hardcoding things, I decided to put it within a loop, the issue i am...

View Article

How do I active multple workstations with key using powershell or is there...

Must activate multiple workstations from windows 10 pro to 10 Enterprise. I have the key and trying to update all computers with the key instead of going to one machine at a time. I want to be able to...

View Article

REST ConvertTo-JSON with line break

Using a PowerShell script and the TFS / REST api to add Tasks to a TFS project, but I want the Task Description to include line breaks.  Does anyone know if this is possible, I've tried a number of...

View Article


Backup Active Directory ACL to restore later

Hello,I have to make some modifications to security permissions on AD objects, and I would like to use the get-acl command to back them up and then restore them later if I need.  So far, I can backup...

View Article


unable to get value of msExchExtenstionAttribute via Get-ADUser

(Get-ADUser -Filter {Name -eq "Myuser"} -SearchBase "OU=O,DC=xyz" -Properties msExchExtenstionAttribute12).msExchExtensionAttribute16 -eq $nullGet-ADUser : One or more properties are invalid. Parameter...

View Article

New-SelfSignedCertificate - Using -TextExtension to create a cert with...

Good Morning All,I want to create a self-signed certificate using New-SelfSignedCertificate for Code sign and SSL setup in my local development environment. I used the following command in a PS...

View Article

import csv files with same columns in variable order

I need load data from csv to SQL . Source are multiple csv files with same columns but files might have the columns in variable order . Destination is same table.  I looked at...

View Article

Export users using AD attributes

Hi all I am trying to write the query in the below format but i am getting error,  In active directory in ADSIEdit, i have the below attributes for every user in every department. Department Number:...

View Article


import from csv to SQL and cast columns datatype with format

I get on a regular schedule a large csv file (over 30 GB) with over 50 columns. 3 of the columns  are basically datetime format like “31DEC2017:23:59:59”. Some of the datetime values are “.” which are...

View Article

[Multi Tenant] Export OU's and Members to seperate CSV files

I am looking for a script that imports CSV information into powershell. We have an multi tenant Active Directory, we want to report the customer which users are active. So we have an CSV file that...

View Article


SQL SERVER MIGRATION FROM WINDOWS TO LINUX

Hello Everyone,I want to migrate one of the SQL server which is running in Windows to Linux.I want to migrate all the things like, Database, Users with there privilege As I am beginner in SQL anyone...

View Article

Using AD module without loading RSAT

Hi,Is it possible to load the AD module and running it from script without installing RSAT component?Thanks,

View Article


Trying to get AD user properties

Hi All , I'm writing a script that will run in the users shell before data migration , the script will first search in user objects in AD to identify DN so user site can be identified to redirect the...

View Article

Can I get AD User Office location?

Hi All , Can I get AD User Office location without loading the Active Directory module ?Thanks

View Article

Prompt for mailbox & Trustee UPN to add / remove “Full...

Currently we've been using below code to add SendAs/Full Access permissions on mailbox list stored in $MBXS ( input file taken from csv ), limitation is - we have to supply Trustee user by editing...

View Article
Browsing all 21975 articles
Browse latest View live


Latest Images