Quantcast
Browsing all 21975 articles
Browse latest View live

Permissions from SET-ACL only show up in advanced settings?

I have a bit of a situation here, I have two file servers setup with DFS (FS02/FS03). Everything is replicating fine aside from my users HOME directories. Me and my boss had initially created a script...

View Article


Importing from csv and Exporting to csv in Powershell to query AD

Hi,Here's the story, i have a csv file that has close to 10000+ users listed in AD. The csv file has their name and title. (EX: Doe John, Manager)I'm trying to see if it's possible to query AD for the...

View Article


90 day inactive user report

I have script which reports 90 day inactive users. However, I want this report to be sent via email. Is there any way this can be achieved. Need help.

View Article

Printing with powershell

So I would like to print all files in a folder by date without opening adobe, word, etc. What I normally do is open the folder sort by date then run the below script to print it all. dir $path |...

View Article

Add-Type usage?

I have some code:      $authTicketRepresentationSource = @"    public class AuthorizationTicketRepresentation`    {`        public string TicketId { get; set; }        public string Username { get;...

View Article


Windows Powershell webaccess - Unexpected Error occurred during the sign-in...

Hi All,I have followed below procedure to enable Powershell Web-Access and getting error during sign-in process.Created on windows 2012 VMJoined to the domainTruned off FirewallInstalled required roles...

View Article

PowerShell and DateTime

I create a type: $authTicketRepresentationSource = @" using System; namespace SonicFoundry.Mediasite.WebApi.Model { public class AuthorizationTicketRepresentation` {` public string TicketId { get; set;...

View Article

Dynamicaly modify an unattended.xml in powershell to add a partition and...

Hi Guys,I have an unattended.xml file which setup parse well. I would like to dynamicaly modify it before launching setup according the hardware detected.For instance, I would like to add a partition...

View Article


I want to create powershell console menu with submenus

I am looking to be able to create a menu system in powershell console with submenusMenu A1. Goto Menu B2. Goto Menu CMenu B1. Run command2. Menu AEtc etc

View Article


Multiple computer prompt

I have a powershell script that goes out and collects data on multiple servers.  I have to edit a file and dump in the server names and then do get-content from within the script to get the server...

View Article

Removing unresolved SIDs from AD Group populated with cross-forest members

Hi there,Looking for a way in PowerShell to remove a specific unresolved SID from a group. Having an issue where a group is populated with accounts from a domain in another forrest. When the accounts...

View Article

Image may be NSFW.
Clik here to view.

problem adding computer to groups

Hi Guys,I have a question about this powershell script.I wanted to try AD and Arrays in powershell. Goal: move a computer in multiple AD groups.What am i doing wrong:# Get parameters, if not specified...

View Article

Help in Script for License Assignment for ADUC Custom Attribute

Hello, I need a script that can assign Office 365 licences based on an AD Attribute value. What I want though is the following:· Inside the script clearly label the attribute in use in case the I wants...

View Article


Formatting Powershell Output

Hello Everyone,When i use Get-ADPrincipalGroupMembership $username | select name in my powershell code I Get all the groups that the user belongs to, but now when i assign the same as below it doesn't...

View Article

WebRequest GetResponse throwing an exception?

I have some code:Try{ . . . . $webRequest = [System.Net.WebRequest]::Create(...)$webRequest.Method = "GET" $webRequest.Accept = 'application/json;odata=verbose'$webResponse = $webRequest.GetResponse()...

View Article


Merging two command's output to a single table

Hi there. I'd like to merge the following two "chain of commands"Get-Mailbox | FT name,server,*quota*   and Get-MailboxDatabase PREF* | Get-MailboxStatistics | FR name,*size*so that I have all the...

View Article

Newbie - Creating a increasing variable- Maybe an array

Not sure how to ask this question.I want a loop where I enter in numbers for the same 3 questions until I end the loop by entering in a key word such as "end"Then I will create another loop that will...

View Article


Removing the roots of a subtree in an Xml file using powershell

Hi allI would like to remove a subtree in a xml file. I found how to remove the subtree, but not the root of the subtree Here I want to remove to second <Disk> ... </Disk> data.RemoveAll()...

View Article

Function not recognized?

I have a function defined at the bottom of my script that has a signature like:function Get-Properties($root, $nsmgr, $entityType, $modelNamespace)Then up above I call it like$propertyCollection =...

View Article

string concatenation issue

$UserLastNameGlobal="James" $UserFirstNameGlobal="Bond"Write-Output "Folder $UserLastNameGlobal" + "_" + "$UserFirstNameGlobal already exists"=Bond already existsWrite-Output "Folder...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>