Installing Azure AD Module v2
I'm trying to install the latest Azure AD Module v2 preview, previously v1 installed, and I'm frustratingly stuck. This is on Win 10 with PS 5.1I uninstalled v1 and tried to run Install-module...
View ArticleDataGridView Select a row or multiple, extract value of each cell and save a $
Hi guys !I wrote this code and i want to select a row, for each row extract cell value and save in a...
View Articleexport all users in a group and forwarding email addresses
I'm trying to export csv file of users in a group which will contain their exchange email address's and the forwarding email address's if they have one.I use:Get-DistributionGroup -Identity...
View ArticleHow can I create a format list of users with title from AD?
I have used this line for my table:Textget-aduser -filter * | ft -property name,samaccountname,titleThe title field does not populate with the users title. Name and sama show up, just no title.
View ArticleAdding Security Groups from new AD Domain
Hello,I'm hoping somone has a slick way to accomplish this task. We have an old AD domain and we're currently in the process of migrating to a new AD domain. The primary file server resides in the...
View ArticleAdd a button on DataGridView cell
Hi guys ! I'm asking if is possible insert a different button in a DataGridView like the example picture.i try with this lines, i can show the button but when i click on the button, the function...
View ArticleInvoke command not working Powershell - "The network path was not found"
Hi Guys,I have a Power Shell script which checks for any non standard accounts in the server's local admin group and goes ahead and removes them. Now the issue that I have facing is that sometime a...
View ArticlePowershell // Compiling a list in an event, and pass the result to another event
Hey guys!I have a function for getting installed software, which is working. At this point I'm working on a function for uninstalling a selected specified software from a list, where I of course would...
View ArticleHow to check synced mydocuments folder are offline or online?
Hello I have my documents folder connected with File server and it is syncing vice versa. I want to check if My Documents is connected with file server or not, if it is connected then what is status of...
View ArticleGet a txt file and convert to csv
Hi scripting guys !I've got a txt file, i want to convert it to csv like in the example.I need to convert in csv with the right column...
View ArticleBulk Users deletiong from AD group
Dear All,I Need to remove around 3000 users from application specific AD Group.and I alraedy have 70k users present in AD Group hence looking for this 3000 users among 70K and deleting is impossible to...
View ArticlePowerShell SendKey Menu Button
Greetings!I have been looking online for a way to right click within excel using powershell and or VB macro so I can get to a field that is in the cell menu option.I am wanting to know from this site...
View ArticleSpecifying an OU using SearchBase
Hi, I am trying to write a simple script to loop through users in a specified OU but am getting an error "Directory object not found".The specified OU definitely has user accounts inside. Here is my...
View ArticleInvoke-Command to a specific user profile
Hi guys,i need to start an application on the remote computer, it generate an outlook report.The big problem is that the application get values from the user profile where account is configurated, so i...
View ArticleTask Scheduler/Service Account issue
Hey all,I'm trying to run a scheduled task as a service account (on a domain controller). I've gone through and changed the run account via cmd, and given the account Log on as batch job rights via...
View ArticleLooking for ways to speed up this Powershell script
I have the below script which wipes the contacts in Office 365 and then recreates them from a .csv file, the file however has ~ 70 thousand entries and it takes this script days of run time. Ideally I...
View ArticlePS Switch to add DNS servers with Static IP is not working
This switch manually sets a PC to DHCP and back to Static as needed to run updates, etc. It works fine except I have been unable to get it to add the DNS server. Please advise...There is no error, it...
View ArticleListing properties added with add-member
Add-member is a great way to extend object properties in powershell. How can I determine what properties were added with this method?For example I extend an adcomputer object using add-member with...
View ArticleHow do I script for both a paramter for multiple items and user input?
I have been working on this Term-User script and during this last quarterly user audit I had pretty good success using it to: disable the user, remove the user groups except Domain Users and move the...
View ArticleUse invoke-command inside a function
Hi guys,i have to use a function to do operations and then connect to a computer and extract data.My problem: when the invoke-command is outside the function works perfectly, when is inside not...
View Article