Issue with AD Powershell Script

Matt338 wrote:This returned that I had two 1st OU's.
It was what I was looking for.
cduff wrote:
it will work without manually specifying the DN property, because the OU object will implicitly cast to a DN string
As I always passed the object and never the DN, I made in my head an implicit definition of the needed type for the targetpath argument :D

So I have been working this summer getting ready for the next school year. I need to move all of my students up and I thought this would be a great job for a PowerShell script. So I did a little research and found the commands and added the -whatif tag so I could test my scripting. It worked and I was happy.Fast forward now two months and I went to run the script once yesterday and I received some errors for the first six lines the the remaining seven ran just fine.Here is my script:Powershellget-aduser -filter "description -eq 'grad27'" | move-adobject -targetpath (Get-ADOrganizationalUnit -filter "name -eq '1st'") -whatifget-aduser -filter "description -eq 'grad26'" | move-adobject -targetpath (Get-ADOrganizationalUnit -filter "name -eq '2nd'") -whatifget-aduser -filter "description -eq 'grad25'" | move-adobject -targetpath (...
This topic first appeared in the Spiceworks Community

Similar Messages

  • Issue with running powershell script in pssessions

    Hi Everyone,
    I am trying to run powershell script from remote machine using below commands
    C:\Users\user>"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
    -command "$s= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri
    http://Exchservername/PowerShell/ -Authentication Kerberos ; Import-PSsession $s; "C:\Failback.ps1"
    and Below is the failback.ps1.
    $mbxs = Get-MailboxDatabase | Sort Name
    ForEach($mbx in $mbxs)
    $MBdb=$mbx.Name $ServerHosting=$mbx.Server.Name
    if($mbx.activationPreference.value -eq 1)
    If ($ServerHosting -ne $ActivationPreference.Key.Name) 
    Move-ActiveMailboxDatabase $MBdb -ActivateOnServer $ActivationPreference.Key.Name -confirm:$False 
    Below is what i am getting.

    What is your question?  Are you pointing out the yellow text?  This is normal, and appears every time EMS is opened.
    I should also point out that Microsoft provides a script to re-balance databases, if that's what you're trying to accomplish:
    You can use the RedistributeActiveDatabases.ps1 script to balance the active mailbox databases copies across a DAG. This script moves databases between their copies in an attempt to have an equal number of mounted databases on each server in DAG. If required,
    the script also attempts to balance active databases across sites.
    https://technet.microsoft.com/en-us/library/dd335158(v=exchg.141).aspx
    Mike Crowley | MVP
    My Blog --
    Baseline Technologies

  • Issue with Generate Create Script in new ODT 11.1.0.6.10 beta

    I've tried this on several tables in my database. I choose Generate Script to ... a file, for a given table it gives me the error message "An error occurred while writing to fil: \nValue was either too large or too smal for an Int32."
    (It doesn't matter if I'm in a Oracle database project or some other project.)
    Trying to Generate Script To Project... when I'm in a Oracle Database Project, Visual Studio (2005) crashes. It appears to be some overflow exception according to crashinfo:
    EventType : clr20r3 P1 : devenv.exe P2 : 8.0.50727.762 P3 : 45716759
    P4 : mscorlib P5 : 2.0.0.0 P6 : 461eee3d P7 : 407b P8 : a3
    P9 : system.overflowexception
    (With ODT 11.1.0.5.10 beta it worked fine dispite the issue discussed in thread: Re: Issue with Generate Create Script in new ODT 11.1.0.5.10 beta
    /Tomas

    Tried to debug this error and got these exception details. Hope it helps!
    /Tomas
    System.OverflowException was unhandled
    Message="Value was either too large or too small for an Int32."
    Source="mscorlib"
    StackTrace:
    Server stack trace:
    at System.Decimal.ToInt32(Decimal d)
    at System.Decimal.op_Explicit(Decimal value)
    at Oracle.Management.Omo.TableSpaceQuotaDetails.FillTableSpaceQuota(OracleDataReader reader)
    at Oracle.Management.Omo.User.FillTableSpaceQuotas(OracleDataReader reader)
    at Oracle.Management.Omo.Connection.GetUserCollection(Boolean refresh)
    at Oracle.Management.Omo.Connection.GetUsers(Boolean refresh)
    at Oracle.Management.Omo.TableSQLGenerator.GetCreateSQLs(OmoObject obj, ArrayList& typeAndNames, Boolean checkRequired, Boolean appendSchemaName)
    at Oracle.Management.Omo.TableViewBase.GetCreateSQLs(Boolean appendSchemaName)
    at Oracle.VsDevTools.OracleUILDBProjectServices.GenerateCreateScript(OracleUILConnCtx connCtx, String[] objectNames, String objectOwner, OracleUILObjectType objectType)
    at Oracle.VsDevTools.OracleUILDBProjectServices.GenerateCreateScriptAsyncMethod(IntPtr ppvObj, OracleUILConnCtx connCtx, String[] objectNames, String objectOwner, OracleUILObjectType objectType, ICollection& scriptText)
    at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
    at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
    at Oracle.VsDevTools.OracleUILDBProjectServices.GenerateScriptAsyncMethodDelegate.EndInvoke(ICollection& scriptText, IAsyncResult result)
    at Oracle.VsDevTools.OracleUILDBProjectServices.OnGenerateScriptAsyncCompletion(IAsyncResult ar)
    at System.Runtime.Remoting.Messaging.AsyncResult.SyncProcessMessage(IMessage msg)
    at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
    at System.Runtime.Remoting.Proxies.AgileAsyncWorkerItem.ThreadPoolCallBack(Object o)
    at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

  • Issue with Generate Create Script in new ODT 11.1.0.5.10 beta

    So I'm trying to determine if there's an issue with the Generate Create Script option in the new ODT 11.1.0.5.10 beta (when you right click on a table in Server Explorer).
    The SQL create script that it generates lacks the slash between lines. For example I generated the create script for my User table and this is what was generated:
    CREATE TABLE "DEV"."SYSTEM_USER_TB" ("RID" NUMBER(10,0),"USER_NAME" VARCHAR2(256 CHAR),"APPLICATION_RID" NUMBER(10,0),"FIRST_NAME" VARCHAR2(256 CHAR),"LAST_NAME" VARCHAR2(256 CHAR),"PW" VARCHAR2(128 CHAR),"PW_FORMAT" NUMBER,"PW_SALT" VARCHAR2(128 CHAR),"LAST_ACTIVITY_DT" DATE,"EXPIRATION_DT" DATE,"EMAIL" VARCHAR2(256 CHAR),"PW_QUESTION" VARCHAR2(256 CHAR),"PW_ANSWER" VARCHAR2(256 CHAR),"APPROVED_FLG" NUMBER(1,0),"LOCKED_OUT_FLG" NUMBER(1,0),"LAST_LOGIN_DT" DATE,"LAST_PW_CHANGED_DT" DATE,"LAST_LOCKOUT_DT" DATE,"FAILED_PW_ATTEMPT_CNT" NUMBER(6,0),"FAILED_PW_ATTEMPT_WINSTART" DATE,"FAILED_PW_ANSW_ATTEMPT_CNT" NUMBER(8,0),"FAILED_PW_ANSW_ATTEMPT_WINSTRT" DATE,"CREATED_BY_RID" NUMBER(10,0),"CREATED_DT" DATE,"MODIFIED_BY_RID" NUMBER(10,0),"MODIFIED_DT" DATE) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 131072 MAXEXTENTS 2147483645 MINEXTENTS 1 )
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033033" PRIMARY KEY ("RID") USING INDEX "DEV"."XPKSTAFF" ENABLE VALIDATE )
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033032" CHECK ("RID" IS NOT NULL) ENABLE VALIDATE )
    CREATE TRIGGER "DEV"."SYSTEM_USER_TRG1"
    BEFORE
    INSERT
    ON "DEV"."SYSTEM_USER_TB"
    FOR EACH ROW
    begin
         select SYSTEM_USER_SEQ.nextval into :new.RID from dual;
    end;
    In my new Oracle Database Project, if I right click on the script and select "Run" or "Run On", the script fails saying:
    Connected.
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ERROR at line 2:
    ORA-00922: missing or invalid option
    If I then add, a slash between lines, the script runs successfully and creates the table/trigger and whatever else just fine. For example, I changed the above generated code to look as follows:
    CREATE TABLE "DEV"."SYSTEM_USER_TB" ("RID" NUMBER(10,0),"USER_NAME" VARCHAR2(256 CHAR),"APPLICATION_RID" NUMBER(10,0),"FIRST_NAME" VARCHAR2(256 CHAR),"LAST_NAME" VARCHAR2(256 CHAR),"PW" VARCHAR2(128 CHAR),"PW_FORMAT" NUMBER,"PW_SALT" VARCHAR2(128 CHAR),"LAST_ACTIVITY_DT" DATE,"EXPIRATION_DT" DATE,"EMAIL" VARCHAR2(256 CHAR),"PW_QUESTION" VARCHAR2(256 CHAR),"PW_ANSWER" VARCHAR2(256 CHAR),"APPROVED_FLG" NUMBER(1,0),"LOCKED_OUT_FLG" NUMBER(1,0),"LAST_LOGIN_DT" DATE,"LAST_PW_CHANGED_DT" DATE,"LAST_LOCKOUT_DT" DATE,"FAILED_PW_ATTEMPT_CNT" NUMBER(6,0),"FAILED_PW_ATTEMPT_WINSTART" DATE,"FAILED_PW_ANSW_ATTEMPT_CNT" NUMBER(8,0),"FAILED_PW_ANSW_ATTEMPT_WINSTRT" DATE,"CREATED_BY_RID" NUMBER(10,0),"CREATED_DT" DATE,"MODIFIED_BY_RID" NUMBER(10,0),"MODIFIED_DT" DATE) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 131072 MAXEXTENTS 2147483645 MINEXTENTS 1 )
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033033" PRIMARY KEY ("RID") USING INDEX "DEV"."XPKSTAFF" ENABLE VALIDATE )
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033032" CHECK ("RID" IS NOT NULL) ENABLE VALIDATE )
    CREATE TRIGGER "DEV"."SYSTEM_USER_TRG1"
    BEFORE
    INSERT
    ON "DEV"."SYSTEM_USER_TB"
    FOR EACH ROW
    begin
         select SYSTEM_USER_SEQ.nextval into :new.RID from dual;
    end;
    So, does anyone know if this is a bug? Could I be missing an option to add in the slashes to the generated code? Is there an option to not require the slashes? Could there be another way to execute these scripts?
    Seriously, I think I'm having deja vu from the last release of the Dev Tools: Generate Create Script creates scripts that won't run: ORA-00922: missing..
    ...except this time the documentation says I should be able to use the "Run" and "Run On" commands in the Oracle Database Project (see page 8): http://www.oracle.com/technology/tech/dotnet/pdf/ODT11_whatsnew.pdf
    null

    There are 2 issues in the generated script :
    1. Missing semicolons at the end of the create stmts
    2. Missing slashes
    Both of these fixes will be available in the ODT 11.1 release.

  • Execution time issues with SU01 demo script

    Having worked with Scripting in a Box for a while now I wanted to try out the examples there. I read FM: SO_USER_LIST_READ or another one explaining why my attempt to narrow the returned users failed (Craig, did you find out why the functionality was removed?) and Re: Issue with "Scripting in a Box" seeing that  Harry had the same problems with only ~200 users in his system. However, Craig's original post states he successfully managed with over 400 users. I'm a bit confused...
    I included some simple timing stuff and found out that processing of one user in the loop takes about 1.7 seconds - little surprise then that every script times out. This seems to be due to the additional calls to GetStatus() and GetValid() - by commenting them out I get the whole list rather quickly.
    Unfortunately commenting them out also means no nice icons for 'Status' and 'Valid', which is not desired. I probably could create a Z FM to deliver me the userlist with these two fields already added (which would save on rfc-calls, assuming the operation is much quicker on the server directly), but I hoped to get a solution based purely on PHP, not own ABAP coding (being aware that Craig also used a Z FM anyway, but still...)
    I'm a bit unsure now how easy it is to actually create useful frontends in PHP, with such long execution times. I assume this will happen in other occasions as well, not only for user lists. Is there an alternative? Or a general way to do those things quicker?
    :Frederic:

    Craig: you say it's easy to go from 1.7 seconds per user lookup down to a small fraction of it? Then apparently I'm lacking these skills. Could you please give me a hint what should be done there?
    I though about creating a Z function, but having to write custom wrappers - possibly for about any transaction in this style - I wanted to avoid.
    Bala: the two functions only take one user as input, not a list. So w/o modifying the ABAP side I can't feed the whole list in there. I wonder how much it would improve the result time anyway, so perhaps I'm trying it. It's just not a solution I'd prefer.
    Paging is a good idea, the actual call to get the whole userlist is quite quick. Having like 20 users displayed at a time is manageable - still slow, but the script won't timeout anymore. I think I'll implement this today.
    About AJAX: yes, I want to play around a bit with AJAX, however having the two columns valid and status removed and the information only displayed on mouseover etc is a bit like cheating. And 1.7+ seconds waiting for a hoover info is too long. So I'd like to optimize on the rfc-calling side primarily.
    Craig: surely it was just a demo, and I'm just trying to get it to work for understanding it
    :Frederic:

  • MBAM 2.0 - Installation with a Powershell script.

    Hi All,
    Can someone suggest me how to install all of the features of MBAM 2.0 in a single server configuration with a power-shell script. I am not getting any documentation on it. And my own methods are not working.
    Any help would be greatly appreciated.
    Gaurav Ranjan

    David, I am following the very same for the powershell commands to install MBAM features.
    Manoj, there is not any reason behind this.. I am doing this for my own just for a development so that we can automate the whole process.
    I am installing the MBAM features in a single server configuration. IIS, Dot.Net, ASP.NET MVC2 and SQL has been successfully installed. now it's time to install MBAM features. As it is a single server configuration I have to instal all of the features on
    this server. When I am running powershell commands to run the MBAM features one by one, i am unable to do so.
    With some research I found that, You can not install MBAM DB features one by one. You have to install it al together. Then in next turn, I have to install MBAM compliance and Audit report and in last MBAM web server.
    Please intimate me if I am wrong.
    Now after following this scenario, I tried one more shot and I have added all of the features in a single powershell command. I tried the mahnual installation and figured out the requirements needed in a single server configuration and I followed the following
    powershell command:-
    MbamSetup.exe /qb /l*v MaltaServerInstall.log TOPOLOGY=0
    I_ACCEPT_ENDUSER_LICENSE_AGREEMENT=1 ADDLOCAL=KeyDatabase,ReportsDatabase,
    Reports,AdministrationMonitoringServer,SelfServiceServer,PolicyTemplate
    REPORTS_USERACCOUNT=[UserDomain]\[UserName1] REPORTS_USERACCOUNTPW=[UserPwd1]
    COMPLIDB_SQLINSTANCE=%computername% RECOVERYANDHWDB_SQLINSTANCE=%computername%
    SRS_INSTANCENAME=%computername% ADMINANDMON_WEBSITE_PORT=83 WEBSITE_PORT=83
    I have done all the steps with different powershell like one for IIS and another for .net and another for SQL. Now I am going to combine all those scripts and will create a single script. i will let you know the result when I will be done.
    Meanwhile Manoj and David, I would request you to look into the some of my unanswered post in MBAM forum. That will be a great help. Manoj, can I send you mails on your ID which I have used earlier to have a communication with you.
    Gaurav Ranjan

  • Issue with running a script in Oracle test manager

    Tool - Open Script 9.0.1 , OTM
    Hi All
    I am facing issue while executing a open script with Oracle Test Manager , I have a script which was made with open script 9.0.1 and which is running very fine with the Open Script UI ,
    problem occurs once I am trying to run this with OTM.Issue looks that playback was so fast in OTM so that script was not able to recognize some of the objects.
    Is there anyway so that I can control the speed of playback at any particular step when I am using OTM
    Thanks

    Hi Kumar,
    Regarding your query below is the suggestion:
    You have to configure the job server with the repository. While configuring the adapter, you have to configure the job server in management console also..
    Still if you are facing issue then please share Job Server logs available in BODS Job Server Folder and error screenshot to debug the issue.
    Thanks,
    Daya

  • Issue with executing diff scripts.

    Hi,
    I have an sql file which we run thru sqlplus. The file has list of scripts to be compiled. Now based on environment i wanna choose which script to be compiled. How should i achieve that?
    schema_changes.sql file
    def dw_user =&1
    def env =&2
    alter session set current_schema=&dw_user._staging;
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA.SQL
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    @EDW/dbscripts/DW/SCHEMA/STAGING_TRG.SQL
    /If the user inputs env as QA, it should compile BUILD_DW_SCHEMA_QA.SQL or else it should compile BUILD_DW_SCHEMA.SQL. I'm not sure SQL block IF END IF will do as we have to have to execute scripts kept on server. Please advice.
    Will the below work:
    def dw_user =&1
    def env =&2
    alter session set current_schema=&dw_user._staging;
    BEGIN
    IF (env = 'QA') then
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    ELSE
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    END IF;
    END;
    @EDW/dbscripts/DW/SCHEMA/STAGING_TRG.SQL
    /

    GR wrote:
    Hi,
    I have an sql file which we run thru sqlplus. The file has list of scripts to be compiled. Now based on environment i wanna choose which script to be compiled. How should i achieve that?
    schema_changes.sql file
    def dw_user =&1
    def env =&2
    alter session set current_schema=&dw_user._staging;
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA.SQL
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    @EDW/dbscripts/DW/SCHEMA/STAGING_TRG.SQL
    /If the user inputs env as QA, it should compile BUILD_DW_SCHEMA_QA.SQL or else it should compile BUILD_DW_SCHEMA.SQL. I'm not sure SQL block IF END IF will do as we have to have to execute scripts kept on server. Please advice.
    Will the below work:
    def dw_user =&1
    def env =&2
    alter session set current_schema=&dw_user._staging;
    BEGIN
    IF (env = 'QA') then
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    ELSE
    @EDW/dbscripts/DW/SCHEMA/BUILD_DW_SCHEMA_QA.SQL
    END IF;
    END;
    @EDW/dbscripts/DW/SCHEMA/STAGING_TRG.SQL
    No, that won't work, as you cannot embed SQL*Plus commands into the PL/SQL language, they are two seperate languages. PL/SQL does not support SQL*Plus commands.
    What you are trying to achieve would be more easily implemented using operating system scripting languages, though the exact script would depend on whether you are using a Windows based o/s or Unix based o/s. The o/s script would be able to prompt for input from the user and has the ability to do conditional processing, thus you can get it to call SQL*Plus with the relevant scripts as the input.

  • Issue with a AA Script

    Dear All,
    I have a problem with auto attendant script. I have a customer who has a greeting saying Welcome to XXXX company.Please enter the desire extension at any time. or else please wait for the operator. Now they want to add an option for the user to press 1 so that the call wil be transfereed to techincal supportteam. The flow wil be like this. WElcome to XXXX company. Please enter the desire extension at any time.For techincal relted queries please press 1 or else please wait for operator. So if the user press 1 the call will go to tehnical department.
    The problem is in the script once the call lands in we have configured in such a way that the system will accept the 4 digit extension and if the user dont press the 4 digit extension it will go to operator. Now if i add the option of 1 in that system is waiting for another 4 digits then it is timing out and going to operator. Is there any way to accomplish the above task. I am adding the script for your reference.

    Hi,
    If you're using CUE, there is a step called "Dial By Extension Menu", this should solve your problem.
    If you're using UCCX (or CUE and don't have this step) you can do the following:
    In the Get Digit String branch Timeout, use an If statement that check if the Number entered was "1" then Call Redirect to Technical Departement Number, else Call Redirect to Operator Extension.
    It should appear like this:
    Extension = Get Digit String
    Timeout
        if (Extension == "1")
            True
                Call Redirect to Technical
            False
                Call Redirect to Operator
    Hope This Helps,

  • Issues with running permission scripts on Hoted desktop via Citrix and when deploying via SCCM

    I am running a permissioning VBScript which runs when I do a standalone insallation manually running the power shell commands to add and publish the application.
    This only runs vis SCCM when a machine installation is acrried out but not a per user installation. Any ideas?
    The same script seems to run sometimes & sometimes does not on a hosted desktop with aps publish via citrix from the appv server. Any ideas?. A coppy of my Deploymentconfig.xml file userscript section that calls the script is below
    <UserScripts>
          <StartProcess RunInVirtualEnvironment="true">
            <ApplicationId>[{AppVPackageRoot}]\Adobe Photoshop CS6 (64 Bit)\Photoshop.exe</ApplicationId>
            <Path>[{AppVPackageRoot}]\..\Scripts\AdobeSerialization.exe</Path>
            <Arguments>adobe_prtk --tool=VolumeSerialize --provfile=[{AppVPackageRoot}]\..\Scripts\prov.xml</Arguments>
            <Wait RollbackOnError="false" />
          </StartProcess>
          <StartVirtualEnvironment>
            <Path>WSCRIPT.EXE</Path>
            <Arguments>[{AppVPackageRoot}]\..\Scripts\VFSCACLS.vbs -guid 6d0756af-b755-493b-8cee-4299e8666978 -error -name "Adobe Photoshop CS6"</Arguments>
            <Wait RollbackOnError="false" />
          </StartVirtualEnvironment>
        </UserScripts>
    The guys in the build team reckon this is an application issues but I can't see how it can be if the applications runs when manually calling the powersehell commands. Also like I said on the Hosted desktop one minutes the script runs and one minute it does
    not.
    Can someone help please?

    Hello,
    If deploying the application to the user, and the configuration file is updated as part of the content and distributed to the DPs, and then downloaded to the client and the client is enabled to run scripts - no I never had that issue.
    If I had something which didn't work I would usually verify what is on the Distribution Point?
    You can download the SCCM 2012 R2 toolkit to verify what is on the DPs;
    http://www.microsoft.com/en-us/download/details.aspx?id=36213
    If it is deployed to the client - it means you can read the client log-file from SCCM. See the AppEnforce.log as a potential candidate;
    http://technet.microsoft.com/en-us/library/hh427342.aspx#BKMK_AppManageLog
    If it gets properly parsed by the App-V Client you can check the App-V event logs, see Tim Mangans blog post about enabling further debug-logs;
    http://www.tmurgent.com/TMBlog/?p=1247
    As I can't see what is happening within your Environment I would redo all the steps and verify what the results were of each step. If one step fails, I would then post what step I had performed up until that point, what the result were of each step and what
    was happening within the final step that I would consider a failure.
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • Login / out history extraction from 2008R2 Event Logs with a PowerShell script?

    Hi folks,
    I think I'm asking something similar to a few other posts, but instead of hijacking their threads, I thought I'd start my own.
    As the subject suggests, I'm trying to extract from a 2008R2 server's Event logs a table of users and their respective login / out events. Not just asking AD for their last login times, but a list of login / out events.
    So far, I'm using:
    Get-EventLog -logname security -Newest 1000 | where {$_.eventID -eq 4624 -or 4634 }
    but the list is long, and contains host authentication connections as well as users. I believe I need something like the ability to filter on "user is domain user", or "user is not a computer", or similar, and then pipe it to Export-CSV,
    but the data is not a CSV file, but more like Text. ie:
    Index : 87290035
    EntryType : SuccessAudit
    InstanceId : 5156
    Message : The Windows Filtering Platform has permitted a connection.
    Application Information:
    Process ID: 1688
    Application Name: \device\harddiskvolume2\windows\system32\dns.exe
    Network Information:
    Direction: %%14592
    Source Address: 192.168.xx.xx
    Source Port: 53
    Destination Address: 192.168.xx.xx
    Destination Port: 44242
    Protocol: 17
    Filter Information:
    Filter Run-Time ID: 66055
    Layer Name: %%14610
    Layer Run-Time ID: 44
    Category : (12810)
    CategoryNumber : 12810
    ReplacementStrings : {1688, \device\harddiskvolume2\windows\system32\dns.exe, %%14592, 192.168.xx.xx...}
    Source : Microsoft-Windows-Security-Auditing
    TimeGenerated : 28/01/2011 4:46:35 PM
    TimeWritten : 28/01/2011 4:46:35 PM
    UserName :
    Why is that even coming up as a result?
    Ideally, I would like a CSV file containing these columns:
    User,timestamp,computer,logon/off
    I've thought about adding a script to the Group Policy where it runs on local machines and appends details to a file on a network share, but I think I would prefer to run this locally, perhaps periodically as a script.
    -- Ebor Administrator

    Thanks Matthew for the links. While I was initially thinking that's looking rather complicated, and my solution was simplistic in comparison, I'm finding (with no surprises, really) that things can get rather complicated quickly. If only parsing was easier
    (or if only they didn't use "Here-Strings" instead, using normal Strings... </grumble>), as it's now looking at almost ten lines (mostly for readability).
    In short, I'm now looking at:
    Get-ADUser -Filter * -SearchBase "OU=Users,OU=Ebor Computing,DC=Ebor,DC=Local" | Sort-Object | ForEach-Object -Process {
    $UserName = $_.SamAccountName
    $MsgQuery="*" + $UserName + "*"
    $EventID = $_.EventID
    $Events = Get-EventLog -logname security -Message $MsgQuery | where {$_.EventID -eq 4624 -or $_.EventID -eq 4634} | ForEach-Object -Process {
    $SrcAddr = "Unknown"
    $idx = $_.message.IndexOf("Source Network Address:")
    if ($idx -gt 0) {$SrcAddr = $_.message.substring($idx+23,15).trim()}
    $UserName+","+$SrcAddr+","+$EventID+","+$_.TimeGenerated | Out-File -FilePath $UserName"_login_events.csv" -Append
    Eeuuw... don't know why that was parsed as it was above... Either way, this takes a very long time, but gives a separate file for each user and goes back the entire length of the Event Log's history for reporting purposes.
    Noting that I had to query AD for the users thus has to run from the AD Powershell, instead of the normal PS, as I don't know the appropriate module load command to get a normal PS to work with AD. Keeping this limitation in mind, I think it works, but needs
    some tweaking for formatting and output I think.
    I'm tempted to create an RODC for this to run on, but what else does the DC do, really? May as well warm up the CPU for an hour or so ;-) I guess one of the improvements could be to determine if the cycles are being taken up with poor String parsing, or
    with AD querying. Another would be to add some comments... ;-)
    -- Ebor Administrator

  • Issues with Lab Manager script ldap.ps1

    Hello all,
    We are going to use a new LDAP server and so we have to run the ldap.ps1 scipt because doing it manully is not an option. We have over 800 users. I believe I enter the correct information. I do get the following error when I run it.
    Has anybody been successful with this script? VMware provides the script but doesn't support it :-(.

    Hi,
    Base on my test, it uses the lab agent service account to deploy the script, so the reason of your issue is that that account haven’t the enough permission to run the script.
    Please check the account of lab agent service in the test agent machine and specify another account to run that service (local service)
    Regards
    Starain
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Issue with calling Shell Script using DBMS_SCHEDULER

    Hi All,
    I am executing a shell script using DBMS_SCHEDULER from APEX web page. Execution part is working fine without any issues.
    In my shell script file (abc.sh) I have few oracle sql procedure calls which connects back to same database and that SQL call is not executing some reason, it not giving any errors.
    Inside my shell script code looks like this.
    sqlplus -silent $USER/$PASSCODE@$SCONNECT > /dev/null <<END
    set pagesize 0 feedback off verify off heading off serveroutput on
    echo off linesize 1000
    WHENEVER SQLERROR EXIT 9
    BEGIN     
    dbms_output.enable(1000000);
    do_enable_cons();
    dbms_output.disable;
    END;
    spool off;
    exit;
    END
    When I run this shell script file from backend it works fine now issues.
    Is there any restrictions in executing sql code using DBMS_SCHEDULER? Any ones help is much appreciated.
    -Regards

    james. wrote:
    Thanks you sb and Sybrand . It is problem with environment variables. After running .bash_profile in the beginning of the shell script, it is working fine.
    One issue is when I check the process it is showing two entries with two different process id's.
    The command I used
    ps -ef | grep <my script> is COPY & PASTE broken for you?
    any reason why you did not show us EXACTLY was produced by OS command above?
    >
    Is it something wrong with my code or is it normal? Is it really executing two times ?
    -Regards
    bcm@bcm-laptop:~$ sqlplus user1/user1
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Jul 20 15:14:15 2012
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    15:14:15 SQL> !ps -ef | grep sqlplus
    bcm      24577  1903  1 15:14 pts/0    00:00:00 sqlplus           
    bcm      24579 24577  0 15:14 pts/0    00:00:00 /bin/bash -c ps -ef | grep sqlplus
    bcm      24581 24579  0 15:14 pts/0    00:00:00 grep sqlplus
    15:14:23 SQL> how many different copies of "sqlplus" running on my laptop based upon actual output above?

  • Issue with running Unix Script during post processing

    Dear all,
    In one of the requirement, we need a execute a UNIX script in the post procesing steps of file channel.
    When the script is run independently on the UNIX prompt, it executes very well.
    But when the same script is kept in the post processing steps of the file channel, it doesn't give the desired results.
    In the channel log, it says the script is executed but we are not able to see the output. (in this case, ist writing some dummy text in a new file). The script has all the permissions for all the users, read write and execute.
    If anyone has a similar issue, kindly respond with the resolutions.
    Regards,
    Younus

    HI Younus
    How you are running the script. Could be a problem with the command you are trying to execute from channel. Let us know the way you are doing
    Check whether installed and executed on XI server properly then again check with channel.
    Check with these for reference
    http://help.sap.com/saphelp_nw70/helpdata/EN/e3/94007075cae04f930cc4c034e411e1/content.htm
    The specified item was not found.
    Executing Unix shell script using Operating System Command in XI
    Thanks
    Gaurav

  • Issue with Creating CATT Script for Generating Derived Roles

    Hi Experts,
    I am desperately trying to find the solution on how I create a CATT Script to generate derived roles from few 100 master roles.
    I posted a thread on Security (Can I do a 'mass generation' of dervied roles?) .. however, since it turns out to be a SCAT issue, I thought I'll ask someone from this forum too.
    Extract from the other thread is as follows :
    "I cannot get the script to automate the generation of derived roles.
    when Entering parameters for a test case, I can only see the Initial PFCG Screen. Display/Change Authorization screen doesn't seem to get recorded / logged in the test screen.
    I.e : All screens with program SAPLPRGN_TREE is recorded, however all screens with program SAPMSSY0 is not.
    I hope it makes sense.. Any suggestions on how I can automate the generation of derived roles tasks?
    Thanks.
    Dineish

    Hi,
    I have the same problem just now.
    Have you found some solutions about it ?
    thx
    Luigi

Maybe you are looking for

  • Choicebox lists appearing in the wrong place

    Hi Having a problem with ChoiceBox. I have a scene with lots of displayed information and a number of choiceboxes. I also have a scene which is much smaller and only displays the most important information. When I switch to the small screen and then

  • My contacts suddenly disappeared how do I retrieve them

    Lost all of my contacts?

  • Explain Plan Understanding

    Hi, Is this both plan are same. Table names are change. Both execution wise would choose same plan of execution No Hint | Id  | Operation              | Name        | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     | Pstart| Pstop |                    

  • Problema al imprimir con adobe reader 8

    Desde que instalé el reader 8, me es imposible imprimir cualquier documento pdf, he mirado todas las configuraciónes, se cargan todas las páginas pero no imprime nada. Con otros documentos en word no tengo ningún problema, por favor alguna sugerencia

  • Error after applying post budget note 1361644

    Hi all,                  Our basis team applied the patch for post budget note and also made changes in V_T7INI7, V_T7INI9, T596F, V_T7INT1,  V_T7INT3  tables but still when i run PC00_M40_CALC  its giving me error. " No entry in table T596F for key