search for: powershell

Displaying 20 results from an estimated 314 matches for "powershell".

2015 Jun 22
1
samba4 domain and powershell
Hi, All. In official samba wiki https://wiki.samba.org/index.php/Installing_RSAT_on_Windows_for_AD_Management#Installation Feature explanation: Active Directory Module for Windows PowerShell: Administrating AD via PowerShell I thought I can manage samba4 domain with powershell, but I can't. I see error "Unable to find a default server with active directory web services running" when I run Active Directory Module for Windows PowerShell. The ability to domain manage vi...
2019 Mar 12
3
Using Samba for Powershell queries
Does anyone know if it’s possible to run Powershell cmdlets such as Get-ADUser or Set-ADUser against a Samba server? The reason I’m asking is for the purpose of developing Powershell scripts. When my laptop is offline it would be very useful to still be able to run that kind of cmdlets without installing a full Windows Server VM. Best regards, Ca...
2013 Jul 22
11
chocolatey, windows, powershell and fault bucket
Hi, I configured puppet open source with the chocolatey module and one windows client. When the puppet agent run as a service (not the interactive version) I can see in the windows event log some errors like Fault bucket 1734820220, type 5 Event name: PowerShell Fault bucket , type 0 Event name: PowerShell I tried to google it but I did not find anything relevant apart from some discussions about running powershell in a thread or something similar.. Any hint on how to fix this? Thanks f. -- You received this message because you are subscribed to th...
2019 Apr 25
1
Re: [PATCH v2v v2 1/2] v2v: windows: Add a helper function for installing Powershell firstboot scripts.
On Tuesday, 16 April 2019 10:55:39 CEST Richard W.M. Jones wrote: > +(* Unfortunately Powershell scripts cannot be directly executed > + * (unless some system config changes are made which for other > + * reasons we don't want to do) and so we have to run this via > + * a regular batch file. > + *) > +let install_firstboot_powershell g { Types.i_windows_systemroot; i_root }...
2007 Nov 28
4
Can''t write to "Windows PowerShell" source with win32-eventlog
Hi all, Tim Uckun reported, and I''ve confirmed, that you can''t write to the Windows PowerShell event source for some reason. Tim thought it might be because of the space in the name, but my attempt to quote it did not seem to help. In order to follow along, install PowerShell, create the foo.dll using the foo.mc file in the ''test'' directory, and try the following code:...
2019 Mar 12
1
Using Samba for Powershell queries
...tarted, but currently only to a proof of concept stage pending further resources becoming available. There are details here:  https://bugzilla.samba.org/show_bug.cgi?id=11231 Andrew Bartlett On Tue, 2019-03-12 at 09:12 -0700, Luke Barone via samba wrote: > Doesn't work in my testing. The PowerShell commandlets need Active > Directory Web Services running to interface with. > > On Tue., Mar. 12, 2019, 8:16 a.m. Carl Winbäck via samba, < > samba at lists.samba.org> wrote: > > > Does anyone know if it’s possible to run Powershell cmdlets such as > > Get-ADUser...
2019 Apr 16
0
[PATCH v2v v2 1/2] v2v: windows: Add a helper function for installing Powershell firstboot scripts.
.../v2v/windows.ml +++ b/v2v/windows.ml @@ -19,6 +19,7 @@ open Printf open Common_gettext.Gettext +open Std_utils open Tools_utils open Utils @@ -45,3 +46,26 @@ and check_app { Guestfs.app2_name = name; publisher =~ rex_avg_tech and (=~) str rex = PCRE.matches rex str + +(* Unfortunately Powershell scripts cannot be directly executed + * (unless some system config changes are made which for other + * reasons we don't want to do) and so we have to run this via + * a regular batch file. + *) +let install_firstboot_powershell g { Types.i_windows_systemroot; i_root } +...
2011 Apr 19
1
PowerShell V2
Hello, I'm looking for a solution to run PowerShell scripts on linux. I have to provide a POC with all functionalities of a branch Windows Server. Actually it's not possible to write all this scripts in bash or in another language because of the high amount of work in order to have fully scripts on linux. Engineers has developped a great tool wi...
2024 Jan 31
2
time based group membership in FL 2016
...> Am 31.01.24 um 17:45 schrieb Kees van Vloten via samba: > > > > Op 31-01-2024 om 17:21 schreef Stefan Kania via samba: > >> Hi all, > >> > >> it's again a question about FL 2016 and if samba supports it. If > >> yes, how can I use it without powershell. > >> > >> In FL 2016 there is the possibility to put a user into a group and > >> the membership is time based. So I could put the user Foo into the > >> group 'domain admins' for 30 minutes and after 30 minutes the > >> system will remove user...
2013 Apr 15
5
Using onlyif for Windows exec
...really well, and I can see a clear line of how we can use it internally. I do have one question though with regard to the using the onlyif parameter of the exec command (as per here http://docs.puppetlabs.com/references/latest/type.html#exec). Ideally, what I would like to do is to only run a PowerShell exec command, if a web page doesn''t currently exist on the server (i.e. the PowerShell script is responsible for deploying the Web Pages (into SharePoint in this case) and I only want to run this step, if these pages don''t already exist. To that end, I have done something lik...
2024 Jan 31
1
time based group membership in FL 2016
Am 31.01.24 um 17:45 schrieb Kees van Vloten via samba: > > Op 31-01-2024 om 17:21 schreef Stefan Kania via samba: >> Hi all, >> >> it's again a question about FL 2016 and if samba supports it. If yes, >> how can I use it without powershell. >> >> In FL 2016 there is the possibility to put a user into a group and the >> membership is time based. So I could put the user Foo into the group >> 'domain admins' for 30 minutes and after 30 minutes the system will >> remove user foo from the group. &g...
2024 Jan 31
1
time based group membership in FL 2016
Op 31-01-2024 om 17:21 schreef Stefan Kania via samba: > Hi all, > > it's again a question about FL 2016 and if samba supports it. If yes, > how can I use it without powershell. > > In FL 2016 there is the possibility to put a user into a group and the > membership is time based. So I could put the user Foo into the group > 'domain admins' for 30 minutes and after 30 minutes the system will > remove user foo from the group. > > But to activ...
2020 May 18
0
setting ACLs via powershell
Dear list, I am struggling with a problem about interaction between a samba share and ACLs set through powershell (Set-Acl). The share was configured following guidelines at the Samba's wiki (https://wiki.samba.org/index.php/Setting_up_a_Share_Using_Windows_ACLs) and I took care about the "rpc rights grant" section. I am able to set permission from within Windows Explorer and using icacls.exe b...
2024 Jan 31
1
time based group membership in FL 2016
...Am 31.01.24 um 17:45 schrieb Kees van Vloten via samba: >>> Op 31-01-2024 om 17:21 schreef Stefan Kania via samba: >>>> Hi all, >>>> >>>> it's again a question about FL 2016 and if samba supports it. If >>>> yes, how can I use it without powershell. >>>> >>>> In FL 2016 there is the possibility to put a user into a group and >>>> the membership is time based. So I could put the user Foo into the >>>> group 'domain admins' for 30 minutes and after 30 minutes the >>>> system wi...
2016 Jul 06
2
[samba as AD] Scripting GPO creation
...AD world > but doing same thing several is, for me, a waste of time. > > That's the reason of this thread. > > So, the question: how to script GPO? Not so easily. > Our start point was there: > https://technet.microsoft.com/en-us/library/ee461027.aspx > Here we have some powershell stuff to export GPO. The result is one > directory containing XML files and sysvol files + one other XML file > outside of GPO's directory. > > Into these XML we have everything to import the GPO, in text format. > That's all we need to have possibility to script injection. &...
2010 Sep 07
0
Semi-automated cloning using powershell scripts
Just in case anybody else ever needs these, here are my semi-automated powershell cloning scripts for Windows domain clients for Samba domain servers. ftp://saf.bio.caltech.edu/pub/software/windows/Cloning.zip They are not very polished, but do what I need, and could serve as a starting point for other sites. These have been tested only on XP SP3. These scripts do not us...
2016 Jul 05
2
[samba as AD] Scripting GPO creation
Hi all, As I'm lazy I would like to script GPO creation and I did not found anything relevant yet. Anyone already tried to extract whole information regarding one GPO from LDAP tree? That would be a nice option to perform that task, giving us possibility to create one GPO, extract it, modify LDIF, inject it.
2019 Apr 15
2
[PATCH v2v 1/2] v2v: windows: Add a helper function for installing Powershell firstboot scripts.
.../v2v/windows.ml +++ b/v2v/windows.ml @@ -19,6 +19,7 @@ open Printf open Common_gettext.Gettext +open Std_utils open Tools_utils open Utils @@ -45,3 +46,26 @@ and check_app { Guestfs.app2_name = name; publisher =~ rex_avg_tech and (=~) str rex = PCRE.matches rex str + +(* Unfortunately Powershell scripts cannot be directly executed + * (unless some system config changes are made which for other + * reasons we don't want to do) and so we have to run this via + * a regular batch file. + *) +let install_firstboot_powershell g { Types.i_windows_systemroot; i_root } +...
2023 Jul 12
3
Test-ComputerSecureChannel -Verbose False since windows 10/11 update 07/2023
...-0 (ubuntu) [3] Any ideas what we can do/test? Thank you. Samuel [1] https://lists.samba.org/archive/samba/2023-July/245749.html [2] https://lists.samba.org/archive/samba/2023-July/245763.html [3] https://lists.samba.org/archive/samba/2023-July/245761.html [4] https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/test-computersecurechannel?view=powershell-5.1
2015 Jan 29
3
rfc2307 deprecated in Windows 2012 R2?
It is actually rather easy to set the attributes via powershell, and that is probably the best way to add them in a Server 2012 R2 environment. I wrote a powershell script to do this automatically for users and groups in an entire domain that should be pretty generic to be reused. It also mirrors the logic used in automatic winbind UID/GID generation to be abl...