Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File { 'current_user':
- path => 'c:\ProgramData\PuppetLabs\facter\facts.d\current_user.bat',
- ensure => 'file',
- group => 'Administrators',
- mode => '0755',
- owner => 'SYSTEM',
- content => "@echo off
- for /F \"tokens=1,2\" %%i in ('qwinsta ^|findstr \"console\"') do echo current_user=%%j
- ",
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement