Advertisement
Guest User

Untitled

a guest
Jan 13th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Puppet 0.31 KB | None | 0 0
  1. File { 'current_user':
  2.   path    => 'c:\ProgramData\PuppetLabs\facter\facts.d\current_user.bat',
  3.   ensure  => 'file',
  4.   group   => 'Administrators',
  5.   mode    => '0755',
  6.   owner   => 'SYSTEM',
  7.   content => "@echo off
  8. for /F \"tokens=1,2\" %%i in ('qwinsta ^|findstr \"console\"') do echo current_user=%%j
  9. ",
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement