Search found 42 matches

by bhnuser
Wed Jul 10, 2019 10:54 pm
Forum: Windows PowerShell
Topic: Add a Domain User to the Local Administrators Group
Replies: 5
Views: 1565

Re: Add a Domain User to the Local Administrators Group

Thank you for the help jvierra. I build now a workaround and it works fine. Here is the snippet: $localAdminUser = "WinNT://$($env:USERDOMAIN)/$($selectedUserLocalAdmin.SamAccountName)" Invoke-Command $ADSession -Scriptblock { param ([string]$t3 = $Computer, [string]$t4 = $username) ([ADSI]"WinNT://...
by bhnuser
Wed Jul 03, 2019 11:42 pm
Forum: Windows PowerShell
Topic: Add a Domain User to the Local Administrators Group
Replies: 5
Views: 1565

Re: Add a Domain User to the Local Administrators Group

Okay, I've read the article ready. But what about the syntax in PowerShell?
by bhnuser
Wed Jul 03, 2019 5:52 am
Forum: Windows PowerShell
Topic: Add a Domain User to the Local Administrators Group
Replies: 5
Views: 1565

Add a Domain User to the Local Administrators Group

Hello everybody, i need your help with my snippet. I would like, as the title says, to add a domain user to the Administrators group on a local machine on the network. The problem is that I run the script with a normal user without admin rights. Is it possible to pass an Admin user to the script bel...
by bhnuser
Tue May 21, 2019 11:58 pm
Forum: Windows PowerShell
Topic: Password as plain text in script
Replies: 3
Views: 1226

Re: Password as plain text in script

Thank you for your prompt reply. The password I would not like to deposit in any case as plain text in my script. With ConvertTo .... I have already worked but I can not find a solution. I have the SecureString, but it can be easily decrypted by PowerShell. So I can not think of a 100% solution for ...
by bhnuser
Tue May 21, 2019 2:32 am
Forum: Windows PowerShell
Topic: Password as plain text in script
Replies: 3
Views: 1226

Password as plain text in script

Hello everybody, i have a question about the password in a script. It should be a service user with high rights in the script deposited so that it is transparent to the end user. The script is exported to an executable file (.exe). My question is how can I implement it without a user can get to the ...
by bhnuser
Wed Apr 10, 2019 11:38 pm
Forum: Windows PowerShell
Topic: PSSession to Skype-Server
Replies: 2
Views: 1106

Re: PSSession to Skype-Server

I'm aware of how I can see the cmdlets. The problem was that on the Skype server the cmdlets are displayed to me but not in a PowerShell session on my local machine. Now I have solved the problem. It was a mistake in the permission. I missed a higher privilege group to pull all the commands in the P...
by bhnuser
Fri Mar 22, 2019 7:17 am
Forum: Windows PowerShell
Topic: PSSession to Skype-Server
Replies: 2
Views: 1106

PSSession to Skype-Server

Hello everybody, i got some problems with a script from the internet. It works on my Skype for Business Server 2015 but if i create a PowerShell-Session to the Server it won't work. Which script i use is Get-fBNumbers.ps1 (can found on the internet). My Problem is now, if i import the PowerShell-Ses...
by bhnuser
Thu Mar 21, 2019 11:52 pm
Forum: PowerShell Studio
Topic: Start ps1-Script in a form
Replies: 2
Views: 1028

Re: Start ps1-Script in a form

Thank you very much. It works for me now :)
by bhnuser
Wed Mar 20, 2019 7:34 am
Forum: PowerShell Studio
Topic: Start ps1-Script in a form
Replies: 2
Views: 1028

Start ps1-Script in a form

Hello everybody, I have received a script for my self-made tool from my colleagues and would like to incorporate it. Unfortunately I do not know how I can execute a script with a push of a button. The script as seen the attachments should be included in the project. To open other forms i can use: Sh...
by bhnuser
Mon Feb 25, 2019 4:49 am
Forum: Windows PowerShell
Topic: New PsSession with a Progress Bar
Replies: 18
Views: 2498

Re: New PsSession with a Progress Bar

You have to have the module (RSAT) installed on any system that needs to use it. It cannot be passed to a remote system. Is there no way to pass the Get-ADUser cmdlet on the job? Finally, the cmdlets are stored in a psm1 in the temp folder. If it does not work, is there any way to permanently save ...