Go Back   Desktop & Server Management (DSM) Forum > GERMAN > DSM 7
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 19th, 2016, 12:48
lucky devil lucky devil is offline
Erfahrener Benutzer
 
Join Date: 02-05-08
Posts: 178
Default MsgBox "IsCurrentUserLocalAdmin" ohne "Niagnt32" od. "NiInst32 /AI"- Wie?

Hallo NG,

wie kann man eine MsgBox "IsCurrentUserLocalAdmin" ohne "Niagnt32" od. "NiInst32 /AI" als Job "Bei jedem Login" als eScript bauen?

Per Service wird ja immer "Rechnername$" als Username aufgelöst.

Jemand eine Idee?

Viele Grüße

lucky devil
Reply With Quote
  #2  
Old December 19th, 2016, 13:57
night night is offline
Neuer Benutzer
 
Join Date: 01-03-09
Posts: 26
Default

Per Powershell angemeldete Benutzerkennung abfragen und dann weiter verarbeiten.

Edit:

hier noch der Powershellcode:

Code:
$u = ([Security.Principal.WindowsIdentity]'USERNAME')
([Security.Principal.WindowsPrincipal]$u).isinrole('Administrator')
Gruß Frank

Last edited by night : December 19th, 2016 at 14:21.
Reply With Quote
  #3  
Old December 21st, 2016, 12:35
lucky devil lucky devil is offline
Erfahrener Benutzer
 
Join Date: 02-05-08
Posts: 178
Default

Hallo Frank,
wie würde das genauer in einem eScript enden?
... für Windows 10 (--> PowerShell Version 5)

Danke

Viel Grüße
lucky devil
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

   

All times are GMT +1. The time now is 12:52.

Powered by vBulletin Version 3.6.7
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.